add "Jvm Core Responsibilities and More About Jvm" (#21145)

* add "Jvm Core Responsibilities and More About Jvm"

we must know why java,not c++ reason is jvm...

* Update index.md

* Update index.md
pull/34280/head
Pawan Bangar 2018-11-10 05:16:06 +05:30 committed by Paul Gamble
parent e6a9e49ac3
commit 1f5d012bb8
1 changed files with 7 additions and 0 deletions

View File

@ -85,6 +85,13 @@ Java is a pretty secure language as it doesn't let your program run directly on
Also, once your bytecode is compiled it can run on any Java VM. This Virtual Machine is machine dependent, i.e it has different implementations for Windows, Linux and Mac. But your program is guaranteed to run in any system thanks to this VM. This philosophy is called <a href='https://en.wikipedia.org/wiki/Write_once,_run_anywhere' target='_blank' rel='nofollow'>"Write Once, Run Anywhere"</a>.
### Jvm Core Responsibilities
1. Coding & interpreting bytecode
2. Security
3. Automatic Memory Management
4. jvm => Platform Dependent
5. Bytecode =-> Platform Independent
## Hello World!
Let's write a sample Hello World application. Open any editor / IDE of choice and create a file `HelloWorld.java`.