Running Java Code
Java is an interpreted language that compiles into bytecode in order to make optimisations. To run a java program you would complete the following steps:
- Compile a source code file
Hello.javawithjavac Hello.java. This will create a bytecode fileHello.class. - Start the JVM and run
Hello.classwithjava Hello.