Computer Applications
Differentiate between the output statements System.out.println() and System.out.print().
Java Intro
116 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
80 Likes
Related Questions
Write down the syntax of output statement in Java programming with an example
What do you understand by Java reserved words? Name at least five Java reserved words which are commonly used in Java programming.
A Java program uses Compiler as well as Interpreter. Explain.
Write a package that is used for input/output operation in Java