What is
the difference between System.out.print and system. out.println()
out.print???plse do it fast it is argent...
Answers
Answered by
2
Answer:
hers is your answer dear yes
System. out. println() - It is used to print the statement. The system is a class, out is the object of PrintStream class, println() is the method of PrintStream class which displays the result and then throws the cursor to the next line.
Answered by
1
Answer:
println() method puts a newline( '\n' ) in the end.
Explanation:
System.out.print("1");
System.out.print("2");
the above two lines gives the output
12
whereas
System.out.println("1");
System.out.println("2"); gives the output
1
2
Similar questions