1. What is a JVM?
JVM is Java Virtual Machine which is a run time environment for the compiled java class files. 2. Are arrays primitive data types? In Java, Arrays are objects. 3. What are local variables? Local varaiables are those which are declared within a block of code like methods. Local variables should be initialised before accessing them. 4. Why is the main() method declared static? main() method is called by the JVM even before the instantiation of the class hence it is declared as static.