Java Basics
What this topic covers
Build Java classes with a runnable main method, compile source files with javac, and launch them with java. Use packages and explain core features such as platform independence and encapsulation.
What does javac produce, and how do you run the result?
javac compiles the source file into bytecode with a .class extension, so Report.java becomes Report.class. Launch it with java Report, using the class name without the extension. The class needs a main method declared public static void that takes a String array, or java cannot start it.