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
Be the first to start discuss.
Q. Under which package is the string class encapsulated?
Q. Which technology do we mix our business logic with the presentation logic?
Q. Which of the following is the advantage of BigDecimal over double?
Q. Which class is used to load the JDBC driver?
Q. Which of the following is incorrect statement about packages?
Q. Which method is used in thread class to test if the current thread has been interrupted?
Discusssion
Login to discuss.