What is the difference between print and println in java??
Print print on the screen end println print in a new line
Print to print the statement on same line but println to print the statement on next line
Println moves the cursor to a new line and then prints where as print keeps on printing on the same line
Print allows u to print any string or any other data type value in an single line, but println allows u to print ur output in several lines
Simple answer...print will not start a new line....
Println will take ur cursor to the new line....
println is when u want to add a line feed after the displayed result..so if there is println then another print or println with be displayed on a new line