Java program to perform multiplication of two number without using * operator

Java program to perform multiplication of two number without using * operator   Java supports different types of Operators. Operators can be classified into numbers of categories: Arithmetic operators, Bitwise operators, Logical Operators, Conditional operators, Assignment Operators, Relational operators, Special operators, Increment Operators, Decrement operators. Java program to perform multiplication of two number without using * … Read more

Java MCQ quiz summary on MultiThreading.

What is Java MCQ quiz summary? Java  MCQ quiz summary consist of all points and notes which may be asked in a technical aptitude round of most of the  interview. In this post you will get all the short and simple key point which are generally asked in most of the exam. We have covered … Read more

IT jobs in pune for freshers

Searching for jobs in Pune? Look no further. We, at staylearner provide you the curated list of IT jobs for freshers in Pune and other states. Edit: We keep updating this list regularly. A post you may have seen a week ago might not be there today. So, please keep yourself updated by visiting this site. … Read more

Cube root of Number

import java.io.*; import java.util.*; class CubeRoot { public static void main(String args[]) { Scanner sc=new Scanner(System.in); System.out.println(“Enter the any value”); int no=sc.nextInt(); System.out.println(“The cube root of number is “+Math.cbrt(no)); } }

Square root of Number

import java.io.*; import java.util.*; class SquareRoot { public static void main(String args[]) { Scanner sc=new Scanner(System.in); System.out.println(“Enter the any value”); int no=sc.nextInt(); System.out.println(“The square root of number is “+Math.sqrt(no)); } }  

Power of Number

import java.io.*; import java.util.*; class Power { public static void main(String args[]) { Scanner sc=new Scanner(System.in); System.out.println(“Enter the base value”); int base=sc.nextInt(); System.out.println(“Enter the exponent value”); int exponent=sc.nextInt(); double result; result=Math.pow(base,exponent); System.out.println(“The power of Number is “+result); } }  

Concatenate string

import java.io.*; import java.util.*; class Concatenate { public static void main(String args[]) { String s1=”java”; String s2=” is a programming Language”;System.out.println(s1); System.out.println(s1.concat(s2)); } }  

Compare two String

import java.io.*; import java.util.*; class Compare { public static void main(String args[]) { String s1=”java”; String s2=”java”;System.out.println(“The comparision of string is “+s1.equals(s2)); } }  

Java Program to find Factorial of number- 7 different ways

Java Program to find Factorial of number- 7 different ways Are u looking for Java Program to find Factorial of number- 7 different ways? Java programs are frequently asked in the interview. In mathematics, the factorial of any number is the multiplication of that number by each number below it till it reaches the last … Read more

Swapping of Two number without using 3 variable

import java.io.*; import java.util.*; class SwapNumber { public static void main(String args[]) { System.out.println(“Enter the value of a and b”); Scanner sc=new Scanner(System.in); int a=sc.nextInt(); int b=sc.nextInt();a=a+b; b=a-b; a=a-b; System.out.println(“The swapping of two number is”+a+” “+b); }}