+ 2

What is the difference between print and println In java

26th Jan 2018, 7:15 AM
Mallikarjun h t
Mallikarjun h t - avatar
2 Answers
+ 23
System.out.println("xyz"); = System.out.print("xyz\n"); //hope u got the difference
26th Jan 2018, 7:16 AM
Gaurav Agrawal
Gaurav Agrawal - avatar
26th Jan 2018, 7:16 AM
Mallikarjun h t
Mallikarjun h t - avatar