First page Back Continue Last page Graphics
Separate Compilation in Java
Good software engineering practice advises that each Java class have its own source file
If the class name is A, then the source file name should be A.java. In our example:
This allows classes to be separately compiled:
- 5% javac MyInt.java
- This creates the object file MyInt.class