print and println – Computer Sir Ki Class

Login


Lost your password?

Don't have an account ?
Register (It's FREE) ×
  

Login
[lwa]



Exam Questions-ICSE2018-02C #JAVA#4044    siteicon   siteicon  

Problem Statement - print and println

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

Solution

TC++ #4044

Since the first statement has a print() method and second has a println() method the output would be

BEST OF LUCK

 


Share

sunmitra| Created: 24-Mar-2018 | Updated: 12-Apr-2019|ICSE2018






Back