“Hello, World” in Java

Java’s static class System provides standard input, output and errors streams.

Java’s standard out (stdout) uses the PrintStream object to convert bytes into the platforms default character encoding.

println uses the BufferedWriter class in a synchronized lock to print out each character of the string to standard out.

public class HelloWorld {

    public static void main(String[] args) {
        System.out.println("Hello, World.");
    }

}

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes:

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>