0
what is the difference between println and print?
5 Respuestas
+ 2
In Println, "ln" used to print the output in a new line or in the next line. Thats the difference.
+ 1
If you use print, your code will countinue in same line but in println your code will countinue from next line. You can try it in a simple code.
+ 1
This
is
println.
This is print.
0
Println is used to make outputs in a new line whereas print is used to make outputs on different line.
0
print and println both are methods which perform same task of printing text on screen
println shifts cursor on the next line after printing text on screen whereas print method keeps cursor on the same line