Which keyword is used to create an instance of a class in Java?
What is the purpose of the "import" keyword in Java?
What does the "this" keyword refer to in Java?
What is the output of the following code snippet?
int x = 10;
int y = 5;
System.out.println(x 5);
Which operator is used for comparing two numbers for equality in Java?
What is the output of the following code snippet?
int x = 10;
System.out.println(x++);
What is the purpose of the "continue" statement in Java?
Which of the following is a valid long literal?
What does the "void" keyword indicate in Java?
What is the purpose of the "finally" block in a try-catch-finally statement in Java?
What is the result of the following code snippet?
int x = 10;
x += 5;
System.out.println(x);
What is the output of the following code snippet?
String str = "Hello";
System.out.println(str.length());
What is the output of the following code snippet?
int x = 5;
int y = 3;
System.out.println(x % y);
What does the "super" keyword do in Java?
What does the "protected" keyword indicate in Java?
Which of the following is NOT a valid Java identifier?
Evaluate the following Java expression
int x=3, y=5, z=10;
System.out.println(++z + y - y + z + x++)
What does the "break" statement do in Java?
What does the "public" access modifier indicate in Java?
Which of the following is true about Java arrays?
What is the output of the following code snippet?
int[] numbers = {1, 2, 3, 4, 5};
System.out.println(numbers[3]);
What is the output of the following code snippet?
String name = "Java"; System.out.println("Hello, " + name + "!");
What is the output of the following code snippet?
System.out.println(10 != 5);
Which of the following is NOT a primitive data type in Java?
What is the output of the following code snippet?
String str = "Java";
System.out.println(str.charAt(2));
What is the output of the following code snippet?
int[] arr = {1, 2, 3, 4, 5};
for (int i : arr) {
if (i == 3) {
continue;
}
System.out.print(i + " ");
}
What is the result of the following code snippet?
String str = "Java";
System.out.println(str.substring(1, 3));
What is the output of the following code snippet?
String str = "Java";
System.out.println(str.indexOf('a'));
What does the "implements" keyword indicate in Java?
What does the "extends" keyword indicate in Java?
What does the expression float a = 35 / 0 return?
What is the output of the following code snippet?
int x = 5;
int y = 2;
System.out.println(x / y);
Which of the following is NOT a Java keyword?
Which of the following is true about Java interfaces?