Compiled & Interpreted language, in order to run the code you must download the java jdk and jre.
n.b. java is NOT javascript
the jdk package supplies both the jdk and jre http://www.oracle.com/technetwork/java/javase/downloads/index.html
# source in fn.java
# compile
javac fn.java
# interpret
java fn