Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
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

Details on JVM

Pankaj Shet
Ranch Hand

Joined: Sep 08, 2006
Posts: 289

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.

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


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


Refer these,
I agree. Here's the link:
subject: Details on JVM
jQuery in Action, 3rd edition