Test program

public class test
{
    public static void main(String[] args)
    {
        System.out.println("Hello\nWorld!");
    }
}

print and println

public class test
{
    public static void main(String[] args)
    {
        System.out.print(3);
        System.out.println(4 + 5);
    }
}

compile error

public class test
{
    public static void main(String[] args)
    {
        System.ouch.println(4 + 5);
    }
}