{"id":1484,"date":"2022-03-05T06:16:29","date_gmt":"2022-03-05T06:16:29","guid":{"rendered":"https:\/\/mdr.foobrdigital.com\/?p=1484"},"modified":"2022-03-05T06:16:29","modified_gmt":"2022-03-05T06:16:29","slug":"how-many-types-of-memory-areas-are-allocated-by-jvm","status":"publish","type":"post","link":"https:\/\/mudassirbackup.infinitycodestudio.com\/index.php\/2022\/03\/05\/how-many-types-of-memory-areas-are-allocated-by-jvm\/","title":{"rendered":"How many types of memory areas are allocated by JVM?"},"content":{"rendered":"\n<p>Many types:<\/p>\n\n\n\n<ol><li><strong>Class(Method) Area:<\/strong>&nbsp;Class Area stores per-class structures such as the runtime constant pool, field, method data, and the code for methods.<\/li><li><strong>Heap:<\/strong>&nbsp;It is the runtime data area in which the memory is allocated to the objects<\/li><li><strong>Stack:<\/strong>&nbsp;Java Stack stores frames. It holds local variables and partial results, and plays a part in method invocation and return. Each thread has a private JVM stack, created at the same time as the thread. A new frame is created each time a method is invoked. A frame is destroyed when its method invocation completes.<\/li><li><strong>Program Counter Register:<\/strong>&nbsp;PC (program counter) register contains the address of the Java virtual machine instruction currently being executed.<\/li><li><strong>Native Method Stack:<\/strong>&nbsp;It contains all the native methods used in the application.<\/li><\/ol>\n","protected":false},"excerpt":{"rendered":"<p>Many types: Class(Method) Area:&nbsp;Class Area stores per-class structures such as the runtime constant pool, field, method data, and the code for methods. Heap:&nbsp;It is the runtime data area in which the memory is allocated to the objects Stack:&nbsp;Java Stack stores frames. It holds local variables and partial results, and plays a part in method invocation [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[262],"tags":[],"_links":{"self":[{"href":"https:\/\/mudassirbackup.infinitycodestudio.com\/index.php\/wp-json\/wp\/v2\/posts\/1484"}],"collection":[{"href":"https:\/\/mudassirbackup.infinitycodestudio.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mudassirbackup.infinitycodestudio.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mudassirbackup.infinitycodestudio.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mudassirbackup.infinitycodestudio.com\/index.php\/wp-json\/wp\/v2\/comments?post=1484"}],"version-history":[{"count":0,"href":"https:\/\/mudassirbackup.infinitycodestudio.com\/index.php\/wp-json\/wp\/v2\/posts\/1484\/revisions"}],"wp:attachment":[{"href":"https:\/\/mudassirbackup.infinitycodestudio.com\/index.php\/wp-json\/wp\/v2\/media?parent=1484"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mudassirbackup.infinitycodestudio.com\/index.php\/wp-json\/wp\/v2\/categories?post=1484"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mudassirbackup.infinitycodestudio.com\/index.php\/wp-json\/wp\/v2\/tags?post=1484"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}