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

Random Posts

  • The URL Class
  • Explain Java Comments
  • Explain Briefly about Serialization
  • Define Session ID
  • Define Connection Pooling

Post a Comment