Compilation in Java
Use the javac command to compile:
javac prog.java
Produces the object file with extension .class (eg: prog.class)
To run object file, use the java command:
java prog
Previous slide
Next slide
Back to first slide
View graphic version