by sarkarijob | Sep 16, 2016 | java
() – This is called a pair of Parentheses ; The semicolon or semi-colon (;) ” double quotation markhttps://en.wikipedia.org/wiki/Quotation_markclass first character will be capital.To create an object in...
by sarkarijob | Sep 12, 2016 | java, java programming
Use Math.pow(double, double), or statically import pow as such:import static java.lang.Math.pow;
by sarkarijob | Sep 6, 2016 | java, java programming
*/ prime number is a number which is divisible by 1 and itself, example 2,3.for printing prime number from 1 to 3 we need to devide 1 by 1 ,2 by 1 and 2 both and 3 by 1,2,and 3.Remember 1 is not considered as prime number.so we will start from 2 so 2 is divisible by 1...
by sarkarijob | Sep 5, 2016 | java, java programming
/*Area and perimeter of rectangle and square using constructor overloading.Constructor overloading means there will be two or more constructor and the name of all constructors will be same only number of arguments will be different.when you pass arguments value...
by sarkarijob | Aug 31, 2016 | java, java programming
/*constructor is a special type of method in which the name of the method is same as the class and there is no return type constructor are used to initialize the value of data.*///Area and volume of cylinder using constructor.import java.io.*;import java.util.*;class...
by sarkarijob | Aug 25, 2016 | java
package array_sum;import java.io.*;import java.util.Scanner; public static void main(String[] args) { int num,i,sum=0; System.out.println(“Enter the size of array”); ...