Java/J2EE interview Questions Hey guys,
Let us discuss Java/J2EE interview Question... What is JVM (Java Virtual Machine)? Twist: - What are Java Byte Codes?
JVM stands for Java Virtual Machine. It’s an abstract computer or virtual computer whichruns the compiled java programs. Actually JVM is a software implementation which standson the top of the real hardware platform and operating system. It provides abstractionbetween the compiled java program and the hardware and operating system.
So the compiled program does not have to worry about what hardware and operatingsystem he has to run in, it’s all handled by the JVM and thus attaining portability. All Javaprograms are compiled in to bytecodes. JVM can only understand and execute Javabytecodes. You can visualize Java bytecodes as machine language for JVM. Java compilertakes the .java files and compiles it to a “bytecode” file with .class file extension. Compilergenerates one class file for one source file.
__________________ Venkat knowledge is Power |