Difference between Print() and Println() Methods in Java



print() : Print Method displays the result and then keeps the cursor in the same line

println() :  Println Method also displays the result and then throws the cursor to the next line.

print() and println() are belongs to the PRINTSTREAM class in Java

Share with SociBook.com

Random Posts

Post a Comment