J2SE Question:

What is virtual machine?

J2SE Interview Question
J2SE Interview Question

Answer:

An abstract specification for a computing device that can be implemented in different ways, in software or hardware. You compile to the instruction set of a virtual machine much like you'd compile to the instruction set of a microprocessor. The Java virtual machine consists of a bytecode instruction set, a set of registers, a stack, a garbage-collected heap, and an area for storing methods.


Previous QuestionNext Question
What is variable?What is volatile?