Native stack: It subsumes all the native methods used in your application. local variables, partial results, and data for calling method and returns. The JVM stack of a thread is used by the thread to store various elements i.e. It is a data area in the JVM memory which is created for a single execution thread. Stack: JVM stack is known as a thread stack. It may increase or decrease in size while the application runs. Heap: A heap is created when the JVM starts up. Static Variables, Static Blocks, Static Methods, Instance Methods are stored in this area. Whenever we run the java program, class loader loads it first.Ĭlass method area: It is one of the Data Area in JVM, in which Class data will be stored. Here goes!Ĭlass Loader: Class loader is a subsystem of JVM. Now, let me show you the JVM architecture. So, in a nutshell, JVM performs the following functions: JVM interprets the bytecode into machine code which is executed in the machine in which the Java program runs. The JVM is a Java platform component that provides an environment for executing Java programs. Well, Java applications are called WORA because of their ability to run a code on any platform. Let me elaborate each one of them one by one: Java Virtual Machine:Įver heard about WORA? (Write once Run Anywhere). Java Virtual Machine, Java Runtime Environment and Java Development Kit respectively. There are three main components of Java language: JVM, JRE, and JDK. Now, let us dig a little deeper in java architecture and talk about various components of Java. This diagram illustrates the internal working of a Java code, or precisely, Java Architecture!
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |