File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Java in General and the fly likes Details on JVM Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "Details on JVM" Watch "Details on JVM" New topic
Author

Details on JVM

Pankaj Shet
Ranch Hand

Joined: Sep 08, 2006
Posts: 219

hi,
I am Pankaj Shet.
Everyone must be knowing that java is a totally platform independent language.
But it is not so.It requires JVM for the same.
Can anyone explain me,what is JVM,how it helps the code to execute on different platform?How does it get converted into a Bytecode?Would java be a platform independent without the presence of JVM?When java compiler compiles a code it gets converted into a Bytecode which is not an Executable code?
Can anyone give me the detailed explaination regarding the above scenerio?
Can anyone tell me the resouces from which i can get the detailed knowledge regaring the same?
Thank you.


PANKAJ SHET
B.Sc.(I.T.), S.C.J.P., S.C.W.C.D., PGDAC(CDAC)
Barry Gaunt
Ranch Hand

Joined: Aug 03, 2002
Posts: 7729
This is an interesting question, but not specific to SCJP. Moving to Java In General (Intermediate).

By the way, you know that you can get the Java Virtual Machine Specification from Sun's java documentation site, don't you?


Ask a Meaningful Question and HowToAskQuestionsOnJavaRanch
Getting someone to think and try something out is much more useful than just telling them the answer.
Srinivas Kalvala
Ranch Hand

Joined: Oct 20, 2005
Posts: 257

Hello,

First let me put one thing, one can't make a thing which is 100% portable. Just dig it in your mind.

1) Converts your program into one X format, which is universal standard.
2) Let every platform understand X format to execute that program.
3) JVM is one that which understand the X format, and it is very obvious that JVM has to be implemented in respective platform to translate the X format into native platform format.

Ok, do you have any idea, to make something 100% portable,

ideas are welcome,
Srinivas Kalvala
Ranch Hand

Joined: Oct 20, 2005
Posts: 257

Hello,

Refer these,

http://en.wikipedia.org/wiki/Java_virtual_machine
http://java.sun.com/docs/books/vmspec/
 
Don't get me started about those stupid light bulbs.
 
subject: Details on JVM
 
Similar Threads
Object Oriented Scripting
JVM
array declaration
VERY URGENT!!!!!!!!!!!!!!!!!!!!
Need info on Java platform independence