亚洲免费在线-亚洲免费在线播放-亚洲免费在线观看-亚洲免费在线观看视频-亚洲免费在线看-亚洲免费在线视频

What is the difference between JRE,JVM and J

系統(tǒng) 2468 0

If you are a Java developer, it is very often that you think about understanding the JRE,JVM and JDK. Once if you understand these things, it would be quite easy for you to visualize things in logical manner. Also look at the picture below, that will clear all your questions about the JRE,JVM and JDK. This article explains about the each term and will make you understand perfectly. Hope this helps. If you are happy to receive our future updates on Java, please subscribe? here .

JDK (Java Development Kit)

Java Developer Kit contains tools needed to develop the Java programs, and? JRE ?to run the programs. The tools include compiler (javac.exe), Java application launcher (java.exe), Appletviewer, etc… Compiler converts java code into byte code. Java application launcher opens a? JRE , loads the class, and invokes its main method.

You need? JDK , if at all you want to write your own programs, and to compile the m. For running java programs, JRE is sufficient. JRE is targeted for execution of Java files i.e.? JRE ?=? JVM ?+ Java Packages Classes(like util, math, lang, awt,swing etc)+runtime libraries.? JDK ?is mainly targeted for java development. I.e. You can create a Java file (with the help of Java packages), compile a Java file and run a java file.



JRE (Java Runtime Environment)

Java Runtime Environment contains JVM, class libraries, and other supporting files. It does not contain any development tools such as compiler, debugger, etc. Actually JVM runs the program, and it uses the class libraries, and other supporting files provided in JRE. If you want to run any java program, you need to have JRE installed in the system

JVM, JRE and JDK The? Java Virtual Machine ?provides a platform-independent way of executing code; programmers can concentrate on writing software, without having to be concerned with how or where it will run.? But, note that JVM itself not a platform independent. It only helps Java to be executed on the platform-independent way. When JVM has to interpret the byte codes to machine language, then it has to use some native or operating system specific language to interact with the system. One has to be very clear on platform independent concept. Even there are many JVMs written on Java, however hey too have little bit of code specific to the?operating systems.?

If u just want to run applets (ex: Online Yahoo games or puzzles),? JRE ?needs to be installed on the machine.

JVM (Java Virtual Machine)

As we all aware when we compile a? Java file , output is not an ‘exe’ but it’s a ‘.class’ file. ‘.class’ file consists of? Java byte codes ?which are understandable by JVM. Java Virtual Machine interprets the byte code into the machine code depending upon the underlying operating system and hardware combination. It is responsible for all the things like garbage collection, array bounds checking, etc… JVM is platform dependent.

The? JVM ?is called “virtual” because it provides a machine interface that does not depend on the underlying operating system and machine hardware architecture. This independence from hardware and operating system is a cornerstone of the write-once run-anywhere value of Java programs.

There are different JVM implementations are there. These may differ in things like performance, reliability, speed, etc. These implementations will differ in those areas where Java specification doesn’t mention how to implement the features, like how the garbage collection process works is JVM dependent, Java spec doesn’t define any specific way to do this.




- See more at: http://www.javabeat.net/what-is-the-difference-between-jrejvm-and-jdk/#sthash.Q8bQwkue.dpuf

What is the difference between JRE,JVM and JDK?


更多文章、技術(shù)交流、商務(wù)合作、聯(lián)系博主

微信掃碼或搜索:z360901061

微信掃一掃加我為好友

QQ號(hào)聯(lián)系: 360901061

您的支持是博主寫(xiě)作最大的動(dòng)力,如果您喜歡我的文章,感覺(jué)我的文章對(duì)您有幫助,請(qǐng)用微信掃描下面二維碼支持博主2元、5元、10元、20元等您想捐的金額吧,狠狠點(diǎn)擊下面給點(diǎn)支持吧,站長(zhǎng)非常感激您!手機(jī)微信長(zhǎng)按不能支付解決辦法:請(qǐng)將微信支付二維碼保存到相冊(cè),切換到微信,然后點(diǎn)擊微信右上角掃一掃功能,選擇支付二維碼完成支付。

【本文對(duì)您有幫助就好】

您的支持是博主寫(xiě)作最大的動(dòng)力,如果您喜歡我的文章,感覺(jué)我的文章對(duì)您有幫助,請(qǐng)用微信掃描上面二維碼支持博主2元、5元、10元、自定義金額等您想捐的金額吧,站長(zhǎng)會(huì)非常 感謝您的哦!!!

發(fā)表我的評(píng)論
最新評(píng)論 總共0條評(píng)論
主站蜘蛛池模板: 嘿咻成人免费视频欧美激情 | 欧美不卡一区 | 老司机福利在线播放 | 最新国产午夜精品视频不卡 | 亚洲大片免费观看 | 国产亚洲精品一区久久 | 88国产经典欧美一区二区三区 | 国产精品入口麻豆高清在线 | 视色视频 | se94se在线看片secom | 欧美三级成人观看 | 天天干天天操天天爱 | 另类图片色 | 99热国产在线 | 国产特黄一级一片免费 | 欧美专区在线观看 | 特级aav毛片日本免费视频 | 97国产在线视频公开免费 | 国产精品九九视频 | 四虎影视在线影院在线观看观看 | 99热久久精品国产 | 久久久久久尹人网香蕉 | 99爱免费| 蜜桃精品免费久久久久影院 | 中文字幕 亚洲一区 | 久艹在线播放 | 欧美一级毛片国产一级毛片 | 午夜精品久久久久久久99热浪潮 | 成人欧美在线观看免费视频 | 亚洲国产精品a一区二区三区 | 国产精品久久久精品视频 | 欧美精品福利在线视频 | 5566中文字幕亚洲精品 | 日韩二区三区 | 99精品在免费线视频 | 97色在线观看免费视频 | 欧美日韩91 | 婷婷激情片 | 国产91久久最新观看地址 | 2021国内精品久久久久影院 | 国产一区亚洲二区三区 |