FIRST PROGRAME

System.out.println("hello world ");

This whole line is required to print an output .

“ system.out.println “ can be written by a shortcut “sout “

Note : if we write “print” in the statement above , then it doesn’t leave a line after printing the statement , but if we write “println” it leaves a line

THE ABOVE POINT DOES NOT APPLY ON THE UPDATED INTELLIJ

PROGRAMME -

public class Main {
    public static void main(String[] args) {
     
        System.out.println("Hello and welcome! \\n ");

    }
}

OUTPUT -

Hello and welcome! 
 

Process finished with exit code 0