+ 1

What is the difference between println and print in Java?

I need to know this because we can run the system easily usiny both. But there is everything with a reason, it says. So, I wan to know it.

30th Jun 2019, 10:18 AM
Sudhanshu Kumar Jha
Sudhanshu Kumar Jha - avatar
2 Answers
+ 3
Sudhanshu Kumar Jha , println method ads a line break and continue to the next line. Print method puts everything on the same line.
30th Jun 2019, 10:23 AM
TheWh¡teCat 🇧🇬
TheWh¡teCat 🇧🇬 - avatar
+ 1
Btw: If you have a question in Java then use only the tag java and not javascript. There are two different languages. Tags: java println print difference (Tags are useful for thr search function.)
30th Jun 2019, 2:47 PM
Denise Roßberg
Denise Roßberg - avatar