1.

System.out.print(“BEST “); System.out.println(“OF LUCK”); Choose the correct option for the output of the above statements:

Answer»

Output:

BEST OF LUCK

System.out.print() does not add a NEW line at the end because of which ‘OF LUCK’ gets printed on the same line as ‘BEST’.

\red



Discussion

No Comment Found