Java Program to Calculate the Cube of a Number

cube program in java

In this tutorial we will learn writing java program to calculate the cube of a given number.  Our program will take a number and will return the cube of that number as output. What is Cube of Number? When a number is multiplied to itself three times, resultant number is known as cube of number. … Read more

Even and Odd number Program in Java

even odd program in java

In this tutorial we will learn writing the program in Java to check whether a given number is even number or not. Before start writing Lets know What is even and odd number? A number is even if it is completely divisible by 2 with 0 remainder. And the number that does not completely divisible … Read more

Java Program to find Prime Factor of a given number

Find Prime Factor Of A Given Number in java

In this tutorial you will learn writing Java program to find prime factor of a given program. Before moving on writing program lets know what is prime factor? Read This: Prime factor program in C How this Java program will behave? The prime factor calculation program will take a number as a input and in … Read more

Java Program to Swap two number without using third Variable

Sum The Digits Of a Number Using Recursion in java

In this tutorial you will see Java program to swap two number without using temp variable. This is also a important program which commonly asked in interview. Read This: C program to swap two number without using third variable. In Swapping operation basically we change value of variable. Suppose assigned value of variable ‘a’ is … Read more

Perfect number program in Java

Perfect Number Program in java

In this tutorial you will learn how to write a program in Java to check a given number is perfect or not. Read This: What is Perfect Number? Write a program in C for Perfect Number. What is Perfect Number? A perfect number is a positive integer that is equal to the sum of its … Read more

Java Program to add two numbers without addition operator

Add two numbers without addition operator

In this tutorial you will learn writing program to add two numbers without using addition operator in Java. Read This:  Write a program in C to add two number without using third variable. How this Java program will behave? This program will take two number as a Input. And After performing some operation as per … Read more

Find greatest among three numbers using Java

Find The Largest Of Three Numbers in java

In this tutorial you will learn how to write a program in C to find largest of three numbers. Determining the greatest among three numbers is a common task that often arises in various applications and algorithms. Whether you’re working on a simple console application or a complex software system, finding maximum value among three … Read more

Palindrome Program in Java using Iteration

Palindrome Program Using Iteration in java

In this tutorial you will learn how to write a program in Java to check a given number is palindrome or not using iteration. Before moving directly on the writing the program Read this: What is Palindrome Number? Write a palindrome program in C. How our Java program will behave? Our program will take a … Read more

Fibonacci Series Program in Java using Recursion

Fibonacci Series Program Using Recursion java

In this tutorial we are going to learn how to print Fibonacci series in java program using recursion. Read this: What is Fibonacci Series? Fibonacci series program in C using recursion. How this Java program will behave? Its Logic is different from Fibonacci series program in Java using iteration. Here we have a function named … Read more

Fibonacci series program in Java using iteration

Fibonacci Series Program Using Iteration in java

In this tutorial we are going to learn how to print Fibonacci series in Java program using iterative method. In this series number of elements of the series is depends upon the input of users. Program will print n number of elements in a series which is given by the user as a input. Read … Read more