26 Dec 2014
On 15:30 by instance of java No comments
- As a programmer we develop a java application and when we compile a java program, the compiler will generate .class (dot class) file.
- The .class file contains byte code (Special java instructions).
- To execute a java program we take the help of JVM (java virtual machine) to the JVM we have to provide .class file as the input.
Class Loader Sub System:
- The class loader sub system will take a .class file as the input and performance the following operations.
- The class loader sub system is responsible for loading the .class file (Byte code) into the JVM.
- Before loading the Byte code into the JVM it will verify where there the Byte code is valid or not. This verification will be done by Byte code verifier.
- If the Byte code is valid then the memory for the Byte code will be allocated in different areas.
- The different areas into which the Byte code is loaded are called as Run Time Data Areas. The various run time data areas are.
1) Method Area: This Area can be used for storing all the class code and method code.
2) Heap Memory: This Area can be used for storing all the objects that are created.
3) Java Stack: This Area can be used for storing the information of the methods. That is under execution. The java stack can be considered as the combination of stack frames where every frame will contain the stat of a single method.
4) PC Register (program counter): This Register will contain address of the next instruction that have to be executed.
5) Java Native Stack: This area is used for storing non-java coding available in the application. The non-java code is called as native code.
Execution Engine:
The Execution Engine is Responsible for executing the program and it contains two parts.
- Interpreter
- JIT Compiler (just in time compiler)
Native Library:
- All the predefined programs required for executing the non-java code put to gather is called as Native Library.
Native Interface:
- The Native Interface is responsible for loading the programs form the Native Library to the: JVM.
- To execute a java program the JVM requires some resources from the machine to get those resources the JVM has to communicate with the operating system (OS). That is available in the underline machine.
Subscribe to:
Post Comments (Atom)
Search
Popular Posts
-
As a programmer we develop a java application and when we compile a java program, the compiler will generate .class (dot class) file. ...
-
Oops: Oops concepts are the rules which are supposed to be satisfied by a programing language in order to call that programing language a...
-
The full form of var-arg is variable length arguments. Till JDK 1.4 we must define overloaded methods to pass different list of arguments...
-
Differences between HashMap and Hash-table Synchronization or Thread Safe : One of the major differences between HashMap and Hashtable...
-
Whenever are having a requirement of converting string (date as string ) in to date we need to use SimpledateFormat class which is presen...
-
Inheritance: The concept of getting properties of one class object to another class object is known as inheritance. Here properties mea...
-
Class Class is a structure. Binding the data with its related and corresponding functions. Class is the base for encapsulation. Clas...
-
Static Keyword Static means class level. static can be static variables , static methods , static blocks . makes your program memory ef...
-
Access Specifier: To Explicitly mention the way how the data (variables and methods of a class) available to outside. Access specif...
-
== operator: == operator used to compare objects references. used to compare data of primitive data types if we are comparing two o...
Blog Archive
-
▼
14
(105)
-
▼
12
(87)
- Print 1 to 10 without using loop in java?
- Programming Questions on Static
- Type Casting in java?
- Programming Interview Questions on loops
- Convert Byte Array to String
- Convert values of a Map to a List
- Map to list in java example
- Marker Interfaces in java
- Object class in java
- Remove duplicates from an array java
- VarArgs in java
- Convert string to date in java
- JVM Architecture
- Inner classes in java
- Core java interview questions
- Access Specifiers/modifiers in java
- Packages in java
- What is the difference between equals() method and...
- Difference between throw and throws in java
- JDBC
- Difference between enumeration and iterator and li...
- Why Java does not supports multiple inheritance?
- 5 different places to define Object of a class in ...
- Four different ways to create objects in java?
- Collections Map
- Producer consumer problem
- Class and object
- Check armstrong number or not
- Constructor Overloading
- Command line arguments
- Enhanced For loop
- Difference between arraylist and vector
- Boxing and unboxing in java
- Wrapper Classes
- Print numbers in pyramid shape
- Sort object using comparator
- Sort object using comparable interface
- Method overriding example program
- Object cloning in java example
- Sort integer array using Bubble Sort in java
- How to find largest element in an array with index...
- How to Add elements to hash map and Display?
- Count the number of occurrences of a character in ...
- Sorting string without using string Methods?
- Sort the string using String Methods?
- Fibonacci series using recursion in java
- Fibonacci series without using recursion in java
- Reverse number program in java
- Check whether string is palindrome or not
- Reverse a string without using string function in ...
- Program to print prime numbers in java
- Filters in java
- Jsp Directive Elements
- Collections List
- Jsp life cycle
- Jsp scripting elements
- JSP in java
- Write a program to sort object using comparator?
- ServletContext
- ServletConfig
- RequestDispatcher in servlet
- Servlet Life Cycle
- Write a program to sort object using comparable ?...
- Servlet Architecture
- write a program to create singleton class?
- What is servlet
- Write a program to swap two numbers?
- Servlet Tutorial
- write a program to object cloning?
- Write a program to Overriding in java?
- Write a program to String reverse without using an...
- Can you define an abstract class without any abstr...
- what are the differences between Final , finally f...
- What is Exception? difference between Exception an...
- What is serialization?
- How to write custom Exception?
- Why do we need Synchronization?
- What is Synchronization?
- what is the difference between method overloading ...
- What is abstract class and interfaces ?
- How to call garbage collector explicitly?
- what is cloning? difference between shallow copy/s...
- What is class and Object in java?
- What are the oops concepts in java?
- What happens When System.out.println(null)?
- Explain System.out.println()?
- Final ,finally and finalize()?
-
▼
12
(87)
Followers
Powered by Blogger.
0 comments:
Post a Comment