Find area & perimeter of a square in java (with example)
What is Square shape ? The square is a fundamental shape in geometry, characterized by several defining properties. It is […]
What is Square shape ? The square is a fundamental shape in geometry, characterized by several defining properties. It is […]
Given radius of circle, find out the area & circumference of circle in java (with example). Area of circle is PI * radius * radius
Given a length and breadth of a rectangle, find the area and perimeter of rectangle. Area of rectangle is length * breadth e.g if
Given base & height of triangle, calculate the area of triangle. Area of triangle = 0.5 * base * height. e.g
Given three sides of triangle, find the area of triangle using hero’s formula. Suppose a, b and c are the
Program to swap two numbers / variable without temporary or third variable in java using XOR , addition / subtraction , multiplication / division methods
What are even & odd numbers ? Given a number in java, check whether number is even or odd The
What is factorial of number? Factorial of a non-negative integer n, denoted by n!. Factorial is the product of all
Given a input number in java. Reverse input number using iterative or non recursive algorithm. e.g. if input number is
What is Fibonacci series? Fibonacci number is obtained by adding two preceding numbers. Fibonacci series is collection of fibonacci numbers. e.g. fibonacci
Given a String in java, reverse the String using standard java classes & recursive/iterative algorithm. e.g. reverse(“Lived”) = “deviL” reverse(“Star”) =
What is Fizz buzz game? FizzBuzz game is very famous interview question. Fizz buzz is a group word game used