View Single Post
  #1  
Old 08-21-2007, 06:53 AM
Venkat Venkat is offline
D-Web Master
 
Join Date: Mar 2007
Posts: 347
Venkat is on a distinguished road
Thumbs up 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
Reply With Quote