Question 1
Question text
The break statement cannot be present for _____________ construct.
Feedback
Question 2
Question text
Using Java we can develop ___________________.
Feedback
Question 3
Question text
The main method in java should ___________.
Feedback
Question 4
Question text
A continue statement makes the execution jump to ______________.
Feedback
the next iteration of the loop
Question 5
Question text
The ________________ statement causes the program execution to stop and JVM to shut down.
Feedback
Question 6
Question text
What will be the output of the program?
public class Sample {
final static short a = 2;
public static int b = 0;
public static void main(String [] args) {
for (int c=0; c < 4; c++)
{
switch (c) {
case a: System.out.print("a ");
default: System.out.print("default ");
case a-1: System.out.print("a-1 ");
break;
case a-2: System.out.print("a-2 ");
}
}
}
}
Feedback
a-2 a-1 a default a-1 default a-1
Question 7
Question text
JRE comprises of ___________ and ___________.
Feedback
, JVM
Question 8
Question text
Identify the features of java.
Feedback
Question 9
Question text
In a for loop, if the number of statements are greater than one, which of the following needs to be inserted at the beginning and the end of the loop?
Feedback
French curly braces{ }
Comments
Post a Comment