• 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
  • Tim Cooke
  • Ron McLeod
  • paul wheaton
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
  • Himai Minh
Bartenders:

what is the difeerence between jdk and jre?

 
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
what are the uses of both,what jdk provides and what jre provides,

and which one have the jvm, to run any .class file on any operating system do we only need of jre.

which one have the java compiler and which one interpreter.



i am very confused about to take both , please help mr to clear these.
 
Sheriff
Posts: 14691
16
Eclipse IDE VI Editor Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
18. What is a JVM? JRE? JDK? J2SDK?
 
Tomendra Singh
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
thank you very much Christophe.
but still 1 am confused about interpreter.
 
Marshal
Posts: 80767
488
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Java is called an interpreted language because the code is not compiled to machine code which the computer executes; rather it is converted to "bytecode" which the java program reads and passes on to the CPU in a format which the CPU can execute.
That means you can have a different java program on Linux, on Mac, on Windows, on an Intel chip, a PPC chip, etc, and the same bytecode will run on all those platforms.
Also the java program can insert some security between the bytecode and execution. "Some" security-not much, however.
 
Tomendra Singh
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
thank you campbell.

but i also want to know that which one have interpreter.
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The interpreter is part of the JVM, which is part of all Java installations, JRE or JDK.
 
reply
    Bookmark Topic Watch Topic
  • New Topic