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
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
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