Home / Programming MCQs / JAVA MCQs / Question
D
Q. What is the output of the following code?
int x = 0; do { System.out.println(x); x++; } while (x < 5);
The do-while loop prints the value of x on each iteration until x becomes greater than or equal to 5.
You must be Logged in to update hint/solution
Choose the correct identifier for a method name in Java.
What will Collections.sort internally uses when number of elements are less than 7?
Which are the special symbols used to initialize an array at the time of the declaration itself?
Identify the output of the following program.
Which of the following is the correct syntax for declaring a method in Java?
Float has _____ bits of storage
Garbage Collection is the process of reclaiming the runtime unused memory automatically.
Which of the following is intrinsic data type
The delimiter used to separate command-line arguments in Java is ____.
Discusssion
Login to discuss.