State the difference between System.out.print and System.out.println in Java with an example each.
Answers
Answered by
2
Answer:
print() The only difference between println() and print() method is thatprintln() throws the cursor to the next line after printing the desired result whereas print() method keeps the cursor on the same line.
Similar questions
History,
4 months ago
English,
4 months ago
Math,
8 months ago
India Languages,
8 months ago
English,
1 year ago