Java is a class-based, object-oriented programming language similar to C++.
To compile (class name must be the same as file name):
$ javac HelloWorld.java
To run:
$ java HelloWorld