posted 24 years ago
hi!
JVM is called virtual because it is not a physical device and it does not physically exists.
Role Of Interpreter:
interper interprets the java byte code and executes that byte code.
Why java Platform independent:
lets ake an example of C language.in C ,if u compile the program, an .exe file will be created in which it hard codes the information about the hardware that has been used .so when ever u try to run that .exe file, it checks for the hardware configuration hardcoded in it.so the platform on which u r trying to run the .exe file should match with the information hardcoded.so it is platform dependent.But in java, interpreter sends the request to the operating system about the hardware confiuguration and it looks for equivalent hardware configuration.so it is not neccessory that the hardware configuartion should match with the byte code's configuration.so java platform independent.