<br />
<b>Warning</b>:  Undefined array key "global_protection_id" in <b>/home/wikitechy/public_html/interview-questions/wp-content/plugins/content-protector/inc/class-ps-rest-handler.php</b> on line <b>51</b><br />
{"id":4247,"date":"2022-05-03T06:34:12","date_gmt":"2022-05-03T06:34:12","guid":{"rendered":"https:\/\/www.wikitechy.com\/interview-questions\/?p=4247"},"modified":"2022-05-03T06:34:12","modified_gmt":"2022-05-03T06:34:12","slug":"what-is-java-virtual-machine","status":"publish","type":"post","link":"https:\/\/www.wikitechy.com\/interview-questions\/java\/what-is-java-virtual-machine\/","title":{"rendered":"What is Java Virtual Machine ?"},"content":{"rendered":"<ul>\n<li style=\"text-align: justify;\">Java Virtual Machine is one of the specifications that provides a runtime environment in which java bytecode can be executed.<\/li>\n<li style=\"text-align: justify;\">In Java code, JVM acts like a run-time engine that calls the main method.<\/li>\n<li style=\"text-align: justify;\">Java Virtual Machine compile java code to be\u00a0a bytecode which is machine independent and close to the native code.<\/li>\n<li style=\"text-align: justify;\">Java&#8217;s platform independence consists mostly of its\u00a0Java Virtual Machine (JVM) and JVM acts as a \u201cvirtual\u201d machine or processor.<\/li>\n<li style=\"text-align: justify;\">The JVM performs the following operations like Load code, Verifies code, Executes code.<\/li>\n<li style=\"text-align: justify;\">Java Virtual Machine is responsible to verify code, load your class files, interpret them and execute them.<\/li>\n<li style=\"text-align: justify;\">JVM is responsibility to makes that possible for the same class file to run on any other\u00a0Operating Systems.<\/li>\n<li style=\"text-align: justify;\">Just In Time compiler and caches your code, usually one method at a time.<\/li>\n<li style=\"text-align: justify;\"><strong>JVM<\/strong> runs the Garbage Collector thread to reclaimed used, without any prompting from the user, unreferenced memory.<\/li>\n<li style=\"text-align: justify;\">In addition to interpreting bytecodes, the JVM must supply interfaces to the various subsystems managed by the\u00a0Operating System\u00a0for mouse, display, keyboard, file system and I\/O ports etc.<\/li>\n<\/ul>\n<p><img fetchpriority=\"high\" decoding=\"async\" class=\"alignnone size-full wp-image-4248\" src=\"https:\/\/www.wikitechy.com\/interview-questions\/wp-content\/uploads\/2022\/05\/what-is-jvm.png\" alt=\"\" width=\"855\" height=\"625\" srcset=\"https:\/\/www.wikitechy.com\/interview-questions\/wp-content\/uploads\/2022\/05\/what-is-jvm.png 855w, https:\/\/www.wikitechy.com\/interview-questions\/wp-content\/uploads\/2022\/05\/what-is-jvm-300x219.png 300w, https:\/\/www.wikitechy.com\/interview-questions\/wp-content\/uploads\/2022\/05\/what-is-jvm-768x561.png 768w, https:\/\/www.wikitechy.com\/interview-questions\/wp-content\/uploads\/2022\/05\/what-is-jvm-390x285.png 390w, https:\/\/www.wikitechy.com\/interview-questions\/wp-content\/uploads\/2022\/05\/what-is-jvm-820x599.png 820w\" sizes=\"(max-width: 855px) 100vw, 855px\" \/><\/p>\n<p style=\"text-align: justify;\">\n","protected":false},"excerpt":{"rendered":"<p>Java Virtual Machine is one of the specifications that provides a runtime environment in which java bytecode can be executed. In Java code, JVM acts like a run-time engine that calls the main method. Java Virtual Machine compile java code to be\u00a0a bytecode which is machine independent and close to the native code. Java&#8217;s platform [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"passster_activate_protection":false,"passster_protect_child_pages":"","passster_protection_type":"password","passster_password":"","passster_activate_overwrite_defaults":"","passster_headline":"","passster_instruction":"","passster_placeholder":"","passster_button":"","passster_id":"","passster_activate_misc_settings":"","passster_redirect_url":"","passster_hide":"no","passster_area_shortcode":"","gtb_hide_title":false,"gtb_wrap_title":false,"gtb_class_title":"","gtb_remove_headerfooter":false,"footnotes":""},"categories":[4004],"tags":[17252,17249,17255,17247,17251,17250,17254,17253,17256,17248],"class_list":["post-4247","post","type-post","status-publish","format-standard","hentry","category-java","tag-definition-of-java-virtual-machine","tag-how-jvm-works","tag-is-jvm-a-compiler","tag-jvm","tag-jvm-vs-jre-vs-jdk","tag-what-is-java-virtual-machine","tag-what-is-jvm","tag-what-is-jvm-compiler-or-interpreter","tag-what-is-jvm-explain-advantages-of-jvm","tag-what-is-jvm-in-java"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v22.6 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>What is Java Virtual Machine ? - What is JVM - Java Interview Questions<\/title>\n<meta name=\"description\" content=\"What is Java Virtual Machine ? - Java Virtual Machine is one of the specifications that provides a runtime environment.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wikitechy.com\/interview-questions\/java\/what-is-java-virtual-machine\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"What is Java Virtual Machine ? - What is JVM - Java Interview Questions\" \/>\n<meta property=\"og:description\" content=\"What is Java Virtual Machine ? - Java Virtual Machine is one of the specifications that provides a runtime environment.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wikitechy.com\/interview-questions\/java\/what-is-java-virtual-machine\/\" \/>\n<meta property=\"og:site_name\" content=\"Wikitechy\" \/>\n<meta property=\"article:published_time\" content=\"2022-05-03T06:34:12+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wikitechy.com\/interview-questions\/wp-content\/uploads\/2022\/05\/what-is-jvm.png\" \/>\n<meta name=\"author\" content=\"webmaster\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"webmaster\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wikitechy.com\/interview-questions\/java\/what-is-java-virtual-machine\/\",\"url\":\"https:\/\/www.wikitechy.com\/interview-questions\/java\/what-is-java-virtual-machine\/\",\"name\":\"What is Java Virtual Machine ? - What is JVM - Java Interview Questions\",\"isPartOf\":{\"@id\":\"https:\/\/www.wikitechy.com\/interview-questions\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.wikitechy.com\/interview-questions\/java\/what-is-java-virtual-machine\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.wikitechy.com\/interview-questions\/java\/what-is-java-virtual-machine\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.wikitechy.com\/interview-questions\/wp-content\/uploads\/2022\/05\/what-is-jvm.png\",\"datePublished\":\"2022-05-03T06:34:12+00:00\",\"dateModified\":\"2022-05-03T06:34:12+00:00\",\"author\":{\"@id\":\"https:\/\/www.wikitechy.com\/interview-questions\/#\/schema\/person\/f785ba3ecc599133e65ab6138042a3e4\"},\"description\":\"What is Java Virtual Machine ? - Java Virtual Machine is one of the specifications that provides a runtime environment.\",\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wikitechy.com\/interview-questions\/java\/what-is-java-virtual-machine\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.wikitechy.com\/interview-questions\/java\/what-is-java-virtual-machine\/#primaryimage\",\"url\":\"https:\/\/www.wikitechy.com\/interview-questions\/wp-content\/uploads\/2022\/05\/what-is-jvm.png\",\"contentUrl\":\"https:\/\/www.wikitechy.com\/interview-questions\/wp-content\/uploads\/2022\/05\/what-is-jvm.png\",\"width\":855,\"height\":625},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wikitechy.com\/interview-questions\/#website\",\"url\":\"https:\/\/www.wikitechy.com\/interview-questions\/\",\"name\":\"Wikitechy\",\"description\":\"Interview Questions\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wikitechy.com\/interview-questions\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wikitechy.com\/interview-questions\/#\/schema\/person\/f785ba3ecc599133e65ab6138042a3e4\",\"name\":\"webmaster\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.wikitechy.com\/interview-questions\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/155b77fd8cdda3d0913fcb7e7ee63543b0c345d2d8f6dcebda5b0583ab61f967?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/155b77fd8cdda3d0913fcb7e7ee63543b0c345d2d8f6dcebda5b0583ab61f967?s=96&d=mm&r=g\",\"caption\":\"webmaster\"},\"sameAs\":[\"https:\/\/www.wikitechy.com\/interview-questions\"],\"url\":\"https:\/\/www.wikitechy.com\/interview-questions\/author\/webmaster\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"What is Java Virtual Machine ? - What is JVM - Java Interview Questions","description":"What is Java Virtual Machine ? - Java Virtual Machine is one of the specifications that provides a runtime environment.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wikitechy.com\/interview-questions\/java\/what-is-java-virtual-machine\/","og_locale":"en_US","og_type":"article","og_title":"What is Java Virtual Machine ? - What is JVM - Java Interview Questions","og_description":"What is Java Virtual Machine ? - Java Virtual Machine is one of the specifications that provides a runtime environment.","og_url":"https:\/\/www.wikitechy.com\/interview-questions\/java\/what-is-java-virtual-machine\/","og_site_name":"Wikitechy","article_published_time":"2022-05-03T06:34:12+00:00","og_image":[{"url":"https:\/\/www.wikitechy.com\/interview-questions\/wp-content\/uploads\/2022\/05\/what-is-jvm.png"}],"author":"webmaster","twitter_card":"summary_large_image","twitter_misc":{"Written by":"webmaster","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wikitechy.com\/interview-questions\/java\/what-is-java-virtual-machine\/","url":"https:\/\/www.wikitechy.com\/interview-questions\/java\/what-is-java-virtual-machine\/","name":"What is Java Virtual Machine ? - What is JVM - Java Interview Questions","isPartOf":{"@id":"https:\/\/www.wikitechy.com\/interview-questions\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.wikitechy.com\/interview-questions\/java\/what-is-java-virtual-machine\/#primaryimage"},"image":{"@id":"https:\/\/www.wikitechy.com\/interview-questions\/java\/what-is-java-virtual-machine\/#primaryimage"},"thumbnailUrl":"https:\/\/www.wikitechy.com\/interview-questions\/wp-content\/uploads\/2022\/05\/what-is-jvm.png","datePublished":"2022-05-03T06:34:12+00:00","dateModified":"2022-05-03T06:34:12+00:00","author":{"@id":"https:\/\/www.wikitechy.com\/interview-questions\/#\/schema\/person\/f785ba3ecc599133e65ab6138042a3e4"},"description":"What is Java Virtual Machine ? - Java Virtual Machine is one of the specifications that provides a runtime environment.","inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wikitechy.com\/interview-questions\/java\/what-is-java-virtual-machine\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.wikitechy.com\/interview-questions\/java\/what-is-java-virtual-machine\/#primaryimage","url":"https:\/\/www.wikitechy.com\/interview-questions\/wp-content\/uploads\/2022\/05\/what-is-jvm.png","contentUrl":"https:\/\/www.wikitechy.com\/interview-questions\/wp-content\/uploads\/2022\/05\/what-is-jvm.png","width":855,"height":625},{"@type":"WebSite","@id":"https:\/\/www.wikitechy.com\/interview-questions\/#website","url":"https:\/\/www.wikitechy.com\/interview-questions\/","name":"Wikitechy","description":"Interview Questions","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wikitechy.com\/interview-questions\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.wikitechy.com\/interview-questions\/#\/schema\/person\/f785ba3ecc599133e65ab6138042a3e4","name":"webmaster","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.wikitechy.com\/interview-questions\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/155b77fd8cdda3d0913fcb7e7ee63543b0c345d2d8f6dcebda5b0583ab61f967?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/155b77fd8cdda3d0913fcb7e7ee63543b0c345d2d8f6dcebda5b0583ab61f967?s=96&d=mm&r=g","caption":"webmaster"},"sameAs":["https:\/\/www.wikitechy.com\/interview-questions"],"url":"https:\/\/www.wikitechy.com\/interview-questions\/author\/webmaster\/"}]}},"_links":{"self":[{"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/posts\/4247","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/comments?post=4247"}],"version-history":[{"count":1,"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/posts\/4247\/revisions"}],"predecessor-version":[{"id":4249,"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/posts\/4247\/revisions\/4249"}],"wp:attachment":[{"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/media?parent=4247"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/categories?post=4247"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/tags?post=4247"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}