why do we use system.out.print ln() why we use ln just for line?? | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
+ 1

why do we use system.out.print ln() why we use ln just for line??

2nd Oct 2016, 7:42 AM
Kartik
2 Respostas
+ 1
Java language focus on security of data to avoid unwanted data to get printed or displayed it has made some rules. system.out means something is going out of the program and print is to display on the content on screen. when u write all that in one line than only you wll be able to display hello ! on screen
2nd Oct 2016, 10:07 AM
Vipra Chudasama
Vipra Chudasama - avatar
0
ln of println is for printing next statements in a new line. when using just System.out.print(); next print statements are printed in the same line.
2nd Oct 2016, 11:32 AM
chetan acharya
chetan acharya - avatar