final keyword
Use of final keyword: A data member of class can be declared as final final data member should be initialize any of three place 1. At a time of declaration… Continue reading "final keyword"
Use of final keyword: A data member of class can be declared as final final data member should be initialize any of three place 1. At a time of declaration… Continue reading "final keyword"
What is java Object ? Object in java is real time entity which have state and behavior. State defines characteristic of object and behavior defines functionality of object An object… Continue reading "Java Object"
package basic; import java.util.Scanner; public class Javaswitch { public static void main(String arg[]) { int x; int a,b; Scanner c=new Scanner(System.in); System.out.println("enter value of a"); a=c.nextInt(); System.out.println("enter value of b");… Continue reading "Switch Case"
Example of Logical operator AND and OR package basic; public class Logicaloperator { public static void main(String[] args) { System.out.println(12&12); System.out.println(11&12); System.out.println(010|4); //010 is a octal number // 4 2… Continue reading "Logical operator"
Example of While and Do while Loop package basic; public class JavawhileLoop { public static void main(String arg[]) { int a=0; while(a < 10) { System.out.println(a); a++; } int b=2;… Continue reading "While Loop"
package basic; public class ForLoop { public static void main(String[] args) { for(int i=1;i<10;i++) { System.out.println(i); } } } output: 1 2 3 4 5 6 7 8 9 For… Continue reading "For Loop"
Example of Unary operator and Use of Final keyword package basic; public class Unaryoperator { public static void main(String[] args) { int a=1; System.out.println(a++); // a++ means post increment "use… Continue reading "Unary Operator"
java provide following control statement if block else else if Use of IF Block In java if is condition block let's see some example. If.java package Controlstatement; public class If… Continue reading "Control Statement in java"
Arrays in Java Java provides a data structure, the array, which stores a fixed-size sequential collection of elements of the same type. An array is used to store a collection… Continue reading "Arrays in java"
Java Methods In Java, Method is a named block of statements used to perform particular operation within the program. A method can be called(invoked) at any point of time in… Continue reading "Java Methods"
Creating Your First Java Program So now you are all set do some coding in java. There are several ways to start your coding these days like either you can… Continue reading "Creating First java program"
Java environment variable setting up You can set path in two ways. Permanent Temporary Steps to set java environment variable path in windows step 1: Right click on my… Continue reading "Java environment variable setting up"