Question: is jvm a compiler or interpreter?
Answer: JVM i.e. Java virtual machine is an interpreter which interprets the byte code. Bytecode make Java a platform independent language. Compiler reads entire code at a time. Interpreter reads code line by line take more time to check.