English

Differentiate between the output statements System.out.print() and System.out.println(). - Computer Applications

Advertisements
Advertisements

Question

Differentiate between the output statements System.out.print() and System.out.println(). 

Distinguish Between

Solution

System.out.print() System.out.println()
Using System.out.print() leaves the cursor on the same line on the screen. System.out.println() moves the cursor to the following line of the screen after printing the result.
shaalaa.com
  Is there an error in this question or solution?
Chapter 1.05: Introduction to Java - EXERCISES [Page 54]

APPEARS IN

Avichal Computer Applications [English] Class 10 ICSE
Chapter 1.05 Introduction to Java
EXERCISES | Q IV. 8. | Page 54
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×