हिंदी

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

Advertisements
Advertisements

प्रश्न

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

अंतर स्पष्ट करें

उत्तर

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
  क्या इस प्रश्न या उत्तर में कोई त्रुटि है?
अध्याय 1.05: Introduction to Java - EXERCISES [पृष्ठ ५४]

APPEARS IN

अविचल Computer Applications [English] Class 10 ICSE
अध्याय 1.05 Introduction to Java
EXERCISES | Q IV. 8. | पृष्ठ ५४
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×