{"id":1241,"date":"2022-07-28T19:34:36","date_gmt":"2022-07-28T19:34:36","guid":{"rendered":"https:\/\/gyanipandit.com\/programming\/?p=1241"},"modified":"2022-07-28T19:34:38","modified_gmt":"2022-07-28T19:34:38","slug":"java-jvm","status":"publish","type":"post","link":"https:\/\/gyanipandit.com\/programming\/java-jvm\/","title":{"rendered":"Java Virtual Machine (JVM)"},"content":{"rendered":"<p style=\"text-align: center;\"><strong>Java Virtual Machine (JVM)<\/strong><\/p>\n<p>We can say that the JVM or Java Virtual Machine, is a part of the Java Runtime Environment. With JVM, we can implement the java application on any platform. So, let&#8217;s now see in short, how this all happens. The below image represents the JVM architecture &#8211;<\/p>\n<h2 style=\"text-align: center;\"><strong>Java Virtual Machine | JVM<\/strong><\/h2>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-1242 size-large\" src=\"https:\/\/gyanipandit.com\/programming\/wp-content\/uploads\/2022\/05\/Java-Virtual-Machine-JVM-828x1024.jpg\" alt=\"\" width=\"828\" height=\"1024\" srcset=\"https:\/\/gyanipandit.com\/programming\/wp-content\/uploads\/2022\/05\/Java-Virtual-Machine-JVM-828x1024.jpg 828w, https:\/\/gyanipandit.com\/programming\/wp-content\/uploads\/2022\/05\/Java-Virtual-Machine-JVM-243x300.jpg 243w, https:\/\/gyanipandit.com\/programming\/wp-content\/uploads\/2022\/05\/Java-Virtual-Machine-JVM-768x950.jpg 768w, https:\/\/gyanipandit.com\/programming\/wp-content\/uploads\/2022\/05\/Java-Virtual-Machine-JVM.jpg 1063w\" sizes=\"auto, (max-width: 828px) 100vw, 828px\" \/><\/p>\n<p>We all know that with the javac compiler, we can get our java source code converted to something called a Byte-code, which is like an intermediate code. This byte-code has a .class extension.<\/p>\n<p>Now, it is the JVM, which converts this byte-code into the executable file for that particular environment in which we wish to run the java application. This is referred to as platform-independent. There is also something called a JIT(just in time)compiler Now, we have a basic understanding of what JVM is. Now let&#8217;s have a look over the different components in JVM.<\/p>\n<p>Here is the list of some of the components &#8211;<\/p>\n<ul>\n<li>Classloader<\/li>\n<li>Runtime data area<\/li>\n<li>Execution engine<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Java Virtual Machine (JVM) We can say that the JVM or Java Virtual Machine, is a part of the Java Runtime Environment. With JVM, we can implement the java application on any platform. So, let&#8217;s now see in short, how this all happens. The below image represents the JVM architecture &#8211; Java Virtual Machine | [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[10],"tags":[12,11],"class_list":{"0":"post-1241","1":"post","2":"type-post","3":"status-publish","4":"format-standard","6":"category-java-tutorial","7":"tag-java","8":"tag-java-tutorial"},"_links":{"self":[{"href":"https:\/\/gyanipandit.com\/programming\/wp-json\/wp\/v2\/posts\/1241","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/gyanipandit.com\/programming\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/gyanipandit.com\/programming\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/gyanipandit.com\/programming\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/gyanipandit.com\/programming\/wp-json\/wp\/v2\/comments?post=1241"}],"version-history":[{"count":2,"href":"https:\/\/gyanipandit.com\/programming\/wp-json\/wp\/v2\/posts\/1241\/revisions"}],"predecessor-version":[{"id":2509,"href":"https:\/\/gyanipandit.com\/programming\/wp-json\/wp\/v2\/posts\/1241\/revisions\/2509"}],"wp:attachment":[{"href":"https:\/\/gyanipandit.com\/programming\/wp-json\/wp\/v2\/media?parent=1241"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/gyanipandit.com\/programming\/wp-json\/wp\/v2\/categories?post=1241"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/gyanipandit.com\/programming\/wp-json\/wp\/v2\/tags?post=1241"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}