English, asked by sunitazirange, 11 months ago

what is the difference between System.out.println and System.out.print ??
those who know it please they will only answer it!!

Answers

Answered by Monalisa123
1

Answer: System. out .println is used when we need to print an element in next line

And , System.out .print is used to print an element in the same line

Explanation:

Answered by TaehyungsCuteGirl
1

Answer: System.out.println function moves to the next line whereas System.out.print does not.

Example: System.out.println("Hello")

System.out.print("World")

System.out.print(".")

Output: Hello

World.

Similar questions