public class While { public void loop() { int x= 0; while ( 1 ) /* Line 6 */ { System.out.print('x plus one is ' (x 1)); /* Line 8 */ } } }Which statement is true? - Study24x7
Social learning Network

Warning: include(./views/auth.php): failed to open stream: Permission denied in /var/www/html/live/loginRightSlider.php on line 18

Warning: include(): Failed opening './views/auth.php' for inclusion (include_path='.:/usr/share/php') in /var/www/html/live/loginRightSlider.php on line 18

Warning: count(): Parameter must be an array or an object that implements Countable in /var/www/html/live/makepost.php on line 52
23 Feb 2023 04:41 PM study24x7 study24x7

public class While { public void loop() { int x= 0; while ( 1 ) /* Line 6 */ { System.out.print("x plus one is " + (x + 1)); /* Line 8 */ } } }Which statement is true?

A

There is a syntax error on line 1.

B

There are syntax errors on lines 1 and 6.

C

There are syntax errors on lines 1, 6, and 8.

D

There is a syntax error on line 6.

study24x7
Write a comment
Related Questions
500+   more Questions to answer
Most Related Articles