ICSE Class 10 Computer Applications
Question 44 of 76
Revising Basic Java Concepts — Question 48
Back to all questions 48
Question Question 29
System.out.print("BEST");
System.out.println("OF LUCK");
Choose the correct option for the output of the above statements
(i) BEST OF LUCK
(ii) BEST
OF LUCK
Option 1 — BEST OF LUCK is the correct option.
Explanation
System.out.print does not print a newline at the end of its output so the println statement begins printing on the same line. So the output is BEST OF LUCK printed on a single line.