Core Java Questions

What is JVM? Java Virtual Machine is an abstract machine which enable to run a Java program. Like a real computing machine, it has an instruction set and manipulates various memory areas at run time. The Java Virtual Machine knows nothing of the Java programming language, only of a particular binary format, the class file format. What is a .class file? A .class file contains Java Virtual Machine instructions or byte codes and a symbol table, as well as other additional information. What is the different in Thread and Process? – A program in execution is often referred as process. A thread is a subset of a process. – A process consists of multiple threads. A thread is the smallest part of the process that can execute concurrently with other parts(threads) of the process. – A process is sometime referred as task. A thread is often referred as lightweight process….