java.org code example
Example 1: java
public class Example {
public static void main(String[] args) {
System.out.println("Hello, world!");
}
}
Example 2: java
Java is a computer language developed by Sun Microsystems. It was released in 1995 as a core part of Sun's Java platform. Although its syntax is very similar to the C, C Plus plus, it is based on a simpler object model