Computer Science
Distinguish between System.out.print() and System.out.println() with an example.
Java Intro
46 Likes
Answer
| System.out.println() | System.out.print() |
|---|---|
| It prints data to the console and places the cursor in the next line. | It prints data to the console but the cursor remains at the end of the data in the same line. |
| Next printing takes place from next line. | Next printing takes place from the same line. |
Answered By
20 Likes