Question: how jvm will work in java?
Answer: JVM(Java Virtual Machine) acts as a run-time engine to run Java applications. JVM is the one that actually calls the main method present in a java code. ... java file are generated by the Java compiler.