• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Details on JVM

 
Ranch Hand
Posts: 338
Scala Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 7729
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
Ranch Hand
Posts: 257
Hibernate Firefox Browser Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Hibernate Firefox Browser Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello,

Refer these,

http://en.wikipedia.org/wiki/Java_virtual_machine
http://java.sun.com/docs/books/vmspec/
 
No matter how many women are assigned to the project, a pregnancy takes nine months. Much longer than this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic