Java Notes

Java Programming Language Notes In Java, class names has to match with the file names To get a jar file that you can execute on a JVM, you need to perform the following steps: Compile the Java source code into byte code Create a jar file from the compiled byte code Execute generated jar file with JVM If we outline the commands corresponding to the steps above javac Main.java jar cvfe my-jar.java Main Main.class OtherDeps.class java -jar my-jar.java In addition to swtich statements, there is also switch expressions ...

November 7, 2025