Forums Register Login

what is the difeerence between jdk and jre?

+Pie Number of slices to send: Send
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.
+Pie Number of slices to send: Send
+Pie Number of slices to send: Send
thank you very much Christophe.
but still 1 am confused about interpreter.
+Pie Number of slices to send: Send
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.
+Pie Number of slices to send: Send
thank you campbell.

but i also want to know that which one have interpreter.
+Pie Number of slices to send: Send
The interpreter is part of the JVM, which is part of all Java installations, JRE or JDK.
We're all out of roofs. But we still have tiny ads:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 1098 times.
Similar Threads
JDK/JRE installation
Difference between JVM and JRE
Installation Query
32 bit class file on 64 bit runtime
java 1.4 and java 1.5
More...

All times above are in ranch (not your local) time.
The current ranch time is
Apr 16, 2024 10:22:50.