Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Details on JVM

 
Pankaj Shet
Ranch Hand
Posts: 300
Java Scala Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Barry Gaunt
Ranch Hand
Posts: 7729
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
Srinivas Kalvala
Ranch Hand
Posts: 257
Firefox Browser Hibernate Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 257
Firefox Browser Hibernate Linux
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic