Java-Print and Println

Print and Println

The print() method prints just the string, but does not move to a new line. The println() method prints the string and moves to a new line.



Program Source

class Javaapp {

    public static void main(String[] args) {
        System.out.print("Java is a high-level programming ");
        System.out.println("language originally developed by ");
        System.out.print("Sun Microsystems and released in 1995.");

One thought on “Java-Print and Println

Leave a Comment