What is wrong with the following code?
x=1;
while (x<5);
 { System.out.println (x);
   x++;
}

A. Syntax error in the println method
B. Incorrect use of prefix increment operator
C. Semicolon at the end of the while expression
D. Incorrect initialization

Answer: C

Computer Science & Information Technology

You might also like to view...

Which of the following is most likely used to troubleshoot an IEEE 1394 device?

A) Multimedia control panel B) Scanners and cameras control panel C) Task Manager D) Device Manager

Computer Science & Information Technology

_______ is an operating system for mobile devices based on the Linux kernel and Java.

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology