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

1

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.");
    }
}

Leave a Comment