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 [पृष्ठ ५४]