Method area : This is logically a part heap space which will contain the class skeleton. It stores per class structures means run time constants and static variables, methods, constructors, class names and also class type information. It is a shared resource. Only one method area will reside in JVM. In Runtime constant pool string literals will be stored. Here literals don't relate to any object instances. Run time constant pool doesn't relate to object instances.
Heap: Here information about objects will be stored. If we create object in heap space will be allocated. If object dies then memory garbage collected. It is common space shared among all threads.
Stack area: It is not shared memory. Per every thread one run time stack will be created. It holds local variables, parameters, intermediate results and other data. It plays role in method invocation and return. JVM stores thread information in discrete frames. These frames will be stored in JVM stacks with push and pop operations. Here stack memory need not to be contiguous and it is dynamically expanded. If memory is not sufficient for expansion it will throw out of memory error.
PC register: whenever new thread is created then it will get pc register. Pc register will store the address of current instruction to be executed.
Native method stacks: native method stack will store native methods. This is also not a shared resource. Native method is java method but implementation will be another language mostly in c. these methods usually used to interface the system calls and libraries.
===============================
Subscribe Our Channel : https://goo.gl/HhwC5i
You can access following full courses in Udemy , if you need coupons inbox me
********************************************************************************
Java Programming for Complete Stranger [Beginner Course]: https://www.udemy.com/course/java-pro...
Java8 New Features : https://www.udemy.com/course/lambda-w...
Java8 New Features in Tamil : https://www.udemy.com/course/java-fun...
Java9 New Features : https://www.udemy.com/course/java9-ne...
Mastery in Python - For Beginners from Zero to Hero : https://www.udemy.com/course/mastery-...
Java Interview Questions : https://www.udemy.com/course/java-int...
Python from Intermediate to Expert : https://www.udemy.com/course/python-b...
********************************************************************************
Like , Share and leave us your comments
********************************************************************************
Thanks For Watching !!!
********************************************************************************
Subscribe Our Channel : https://goo.gl/HhwC5i
On this page of the site you can watch the video online Java Tutorial for Beginners 2020 | Java Virtual Machine Architecture with a duration of hours minute second in good quality, which was uploaded by the user Bytecode Velocity 06 September 2020, share the link with friends and acquaintances, this video has already been watched 301 times on youtube and it was liked by 3 viewers. Enjoy your viewing!