Q.1.
Command to run a Java program
Q.2.
What will be the output of the following Java program?class mainclass {public static void main(String args[]){char a = 'A';a++;System.out.print((int)a);}}
Q.3.
What will be the output of the following Java program?class array_output { public static void main(String args[]) { char array_variable [] = new char[10]; for (int i =i <++i) { array_variable[i] = 'i'; System.out.print(array_variable[i] + "" ); i++; } } }
Q.4.
Command to compile Java program
Q.5.
A ___________ file is created after successful compilation of a Java program.
Q.6.
Which one is a valid declaration of a boolean?
Q.7.
Java program is
Q.8.
Which of these values can a boolean variable contain?
Q.9.
The name of the following should be the file name in Java
Q.10.
Java is a
Q.11.
Which provides runtime environment for java byte code to be executed?
Q.12.
Java language was initially called as ________
Q.13.
Data type long literals are appended by _____
Q.14.
Command to execute compiled java program is
Q.15.
String s1 = new String("java");String s2 = new String("JAVA");System.out.println(s1 = s2);
Q.16.
The command javac
Q.17.
Which of the following are not Java keywords ?
Q.18.
String s = "Java"+1+2+"Quiz"+""+(3+4);System.out.println(s);
Q.19.
String s1 = "abc";String s2 = "def";System.out.println(s1.compareTo(s2));
Q.20.
String s = "Java String Quiz";System.out.println(s.substring(5,3));