This Test will cover the basic concepts of Core Java, including basic syntax, Operators, Variables, control statements, JVM, Java Array etc.
public class Test { public static void main(String argv[]) { int[] arr = new int[]{1,2,3}; System.out.println(arr[1]); } }
int [] arr = { 23, 5, 78, 34, 2};
public class Test { public static void main(String[] args) { int j = 5; for (int i = 0; i< j; i++) { if ( i <= j-- ) System.out.print( (i*j) + " "); } } }
3 * 4
equivalent to 3 << 2
?char
?public class Test { public static void main(String[] args) { double d = 100.04; float f = d; System.out.println("Float value "+f); } }
/java/tests/1