This document provides an overview of key Java programming concepts including data types, classes, inheritance, polymorphism, and the Java architecture. It discusses how Java code is compiled to bytecode and executed by the Java Virtual Machine (JVM) independently of hardware or operating systems, making Java programs platform independent. It also describes the Java Runtime Environment (JRE) and Java Development Kit (JDK) and their roles in developing and running Java applications.
This document discusses the evolution of Java programming language. It begins with an introduction to Java, describing it as an object-oriented language suited for internet programming. The document then covers Java's history, key features, environment including development tools and runtime components. It describes Java's portability, security, object-oriented nature and use in a variety of platforms from mobile to servers.
Java is a general purpose programming language that is widely used for web applications. It enables users to develop and deploy applications on the Internet for servers, desktop computers, and small hand-held devices. Java applications are compiled into bytecode that runs on a Java Virtual Machine (JVM) allowing them to run on any platform that supports Java. Key Java technologies include Java Servlets for developing web applications, JavaServer Pages (JSP) to create dynamic web content, and Enterprise JavaBeans (EJB) for building the business logic of enterprise applications. J2EE (Java 2 Enterprise Edition) is a specification that provides a framework for developing multi-tiered, web-based enterprise applications.
Java & J2EE Struts with Hibernate FrameworkMohit Belwal
This document provides an overview of Java 2 Enterprise Edition (J2EE) and its core components. J2EE is a multi-tiered architecture for developing enterprise applications and web applications using Java technology. It uses a component-based model where components like servlets, JavaServer Pages (JSPs), and Enterprise JavaBeans (EJBs) interact with services provided by containers like web containers and EJB containers. The document discusses J2EE concepts, features, benefits, components, containers, and how applications are packaged and deployed. It also provides examples of servlets and JSPs as core web components in J2EE.
Introduction to Java : Feature to Java, Java Virtual Machine, Differences between C++ and Java,
Part of Java, API Document, Starting a Java Program. Important Classes, Formatting the Output
OTS Solutions is an interactive company which experts in the field of Java and offers the services in Java application development, Java software development, Struts Java Web Development, Spring Java Web Development and Core Java Application Development.
If you are looking for quality Java training? You're on the right track! Scode network is one of the leading professional training institutes in Ghaziabad and Noida. We offer Core Java training in various areas, focusing on the industry's trends and learner-friendly classes. Learners get hands-on experience with real-world projects and 100% placement assistance. After finishing the course, you will achieve a completion certificate.
Scode Network has a certified excellent training centre, which means you'll receive the highest quality of training. Our course can help you get the knowledge to excel in your chosen career. The faculty members have years of experience in the industry, so you're guaranteed to learn practical skills and theory. You'll gain a comprehensive knowledge of Java, and you'll be able to apply it immediately upon graduation.
JRE , JDK and platform independent nature of JAVAMehak Tawakley
Java programming language was originally developed by Sun Microsystems which was initiated by James Gosling and released in 1995 as core component of Sun Microsystems.
JRE stands for Java Runtime Environment which is used to provide an environment at runtime.
JVM or Java Virtual Machine is the medium which compiles Java code to bytecode which gets interpreted on a different machine and hence it makes it Platform/ Operating system independent.
JDK (Java SE Development Kit) Includes a complete JRE (Java Runtime Environment) plus tools for developing, debugging, and monitoring Java applications.
This document provides an introduction to the Java programming language. It discusses that Java is an object-oriented, platform-independent language that was originally developed by Sun Microsystems in 1995. It also outlines some key differences between Java and other languages like C and C++, such as Java's lack of pointers and emphasis on object-oriented features. The document then provides details on compiling and running a simple Java program, and explains the different phases of program creation and execution in Java.
This document provides an overview of Java fundamentals including its history, key components like the JDK and JRE, how bytecode and the JVM enable platform independence, and core object-oriented programming principles. It describes how Java was created in the early 1990s to control consumer devices, the development of applets for web browsers, and how bytecode compilation allows the same code to run on any device with a Java Virtual Machine.
Java was developed in 1991 at Sun Microsystems by James Gosling and others to be a platform-independent object-oriented programming language. It was initially called Oak but renamed to Java in 1995. Java compiles code to bytecode that runs on a Java Virtual Machine (JVM) allowing programs to run on any device with a JVM. Major features of Java include being object-oriented, portable, robust, secure, multithreaded, and dynamic. Java has evolved through several versions and is widely used for internet applications and enterprise software.
1. Java is an object-oriented programming language that is compiled into bytecode that can run on any machine with a Java Virtual Machine (JVM).
2. Key features of Java include being simple, secure, portable, object-oriented, robust, multithreaded, architecture-neutral, interpreted, high-performance, distributed, and dynamic.
3. Java's use of bytecode compilation and interpretation by the JVM allows Java programs to execute reliably across different hardware and operating systems.
The document discusses how Java code runs on the Android operating system without requiring a Java runtime environment. It explains that Android uses its own virtual machine called Dalvik, which was developed based on the Apache Harmony project. Dalvik converts Java bytecode into a .dex file format and then interprets the dex files instead of using a standard Java virtual machine. This allows Android to run Java code in its own customized way without infringing on Java's intellectual property.
The document discusses Java programming language and Java virtual machine (JVM). It states that Java code is compiled into bytecode that can run on any JVM, allowing cross-platform portability. The JVM provides a runtime environment and executes bytecode through its components: the bytecode verifier checks for errors, the class loader loads Java classes, the execution engine interprets bytecode into machine code, the garbage collector automatically frees unused memory, and the security manager monitors for security violations.
Java is an object-oriented programming language introduced in 1995. It is platform independent and used widely for web applications. Java code is compiled into bytecode that runs on a virtual machine, allowing the same code to run on different operating systems. Key features of Java include being simple, object-oriented, platform independent, robust, secure, distributed, multithreaded, and dynamic.
Java is an object-oriented programming language introduced in 1995. It is platform independent and used widely for web applications. Java code is compiled into bytecode that runs on a virtual machine, allowing the same code to run on different operating systems. Key features of Java include being simple, object-oriented, platform independent, robust, secure, distributed, multithreaded, and dynamic.
Introduction to Java Programming, Basic Structure, variables Data type, input...Mr. Akaash
This is First Lecture of java Programming which cover all basic points (ie. History and feature of java, Introduction to java, about variables data type and compilation....
The document provides an overview of Java programming concepts across 4 chapters. Chapter 1 discusses object-oriented programming principles like abstraction, encapsulation, and polymorphism. It also provides a brief history of computing paradigms. Chapter 2 discusses the Java platform, including key benefits like platform independence and security. It also explains the Java compilation and execution process. Chapter 3 covers Java fundamentals like the basic "Hello World" program structure, naming conventions, and basic data types in Java.
This document provides an overview of object-oriented programming and the Java platform. It discusses the history of computing and the development of object-oriented programming. It then describes key concepts of object-oriented programming like classes, objects, encapsulation, inheritance and polymorphism. The document also gives an introduction to the Java programming language, its benefits like portability and its components like the Java Runtime Environment. It provides details on compiling and running a simple Java program and the different phases involved.
The document provides an overview of Java programming concepts across 4 chapters. Chapter 1 discusses object-oriented programming principles like abstraction, encapsulation, and polymorphism. It also provides a brief history of computing paradigms. Chapter 2 discusses the Java platform, including key benefits like being platform independent and object-oriented. It explains the Java compilation and execution process. Chapter 3 covers basic Java concepts like the structure of a simple Java program, naming conventions, and primitive data types.
The document provides an overview of Java programming concepts across 4 chapters. Chapter 1 discusses object-oriented programming principles like abstraction, encapsulation, and polymorphism. It also provides a brief history of computing paradigms. Chapter 2 discusses the Java platform, including key benefits like platform independence and security. It also explains the Java compilation and execution process. Chapter 3 covers Java fundamentals like the basic "Hello World" program structure, naming conventions, and basic data types in Java.
If you are looking for quality Java training? You're on the right track! Scode network is one of the leading professional training institutes in Ghaziabad and Noida. We offer Core Java training in various areas, focusing on the industry's trends and learner-friendly classes. Learners get hands-on experience with real-world projects and 100% placement assistance. After finishing the course, you will achieve a completion certificate.
Scode Network has a certified excellent training centre, which means you'll receive the highest quality of training. Our course can help you get the knowledge to excel in your chosen career. The faculty members have years of experience in the industry, so you're guaranteed to learn practical skills and theory. You'll gain a comprehensive knowledge of Java, and you'll be able to apply it immediately upon graduation.
JRE , JDK and platform independent nature of JAVAMehak Tawakley
Java programming language was originally developed by Sun Microsystems which was initiated by James Gosling and released in 1995 as core component of Sun Microsystems.
JRE stands for Java Runtime Environment which is used to provide an environment at runtime.
JVM or Java Virtual Machine is the medium which compiles Java code to bytecode which gets interpreted on a different machine and hence it makes it Platform/ Operating system independent.
JDK (Java SE Development Kit) Includes a complete JRE (Java Runtime Environment) plus tools for developing, debugging, and monitoring Java applications.
This document provides an introduction to the Java programming language. It discusses that Java is an object-oriented, platform-independent language that was originally developed by Sun Microsystems in 1995. It also outlines some key differences between Java and other languages like C and C++, such as Java's lack of pointers and emphasis on object-oriented features. The document then provides details on compiling and running a simple Java program, and explains the different phases of program creation and execution in Java.
This document provides an overview of Java fundamentals including its history, key components like the JDK and JRE, how bytecode and the JVM enable platform independence, and core object-oriented programming principles. It describes how Java was created in the early 1990s to control consumer devices, the development of applets for web browsers, and how bytecode compilation allows the same code to run on any device with a Java Virtual Machine.
Java was developed in 1991 at Sun Microsystems by James Gosling and others to be a platform-independent object-oriented programming language. It was initially called Oak but renamed to Java in 1995. Java compiles code to bytecode that runs on a Java Virtual Machine (JVM) allowing programs to run on any device with a JVM. Major features of Java include being object-oriented, portable, robust, secure, multithreaded, and dynamic. Java has evolved through several versions and is widely used for internet applications and enterprise software.
1. Java is an object-oriented programming language that is compiled into bytecode that can run on any machine with a Java Virtual Machine (JVM).
2. Key features of Java include being simple, secure, portable, object-oriented, robust, multithreaded, architecture-neutral, interpreted, high-performance, distributed, and dynamic.
3. Java's use of bytecode compilation and interpretation by the JVM allows Java programs to execute reliably across different hardware and operating systems.
The document discusses how Java code runs on the Android operating system without requiring a Java runtime environment. It explains that Android uses its own virtual machine called Dalvik, which was developed based on the Apache Harmony project. Dalvik converts Java bytecode into a .dex file format and then interprets the dex files instead of using a standard Java virtual machine. This allows Android to run Java code in its own customized way without infringing on Java's intellectual property.
The document discusses Java programming language and Java virtual machine (JVM). It states that Java code is compiled into bytecode that can run on any JVM, allowing cross-platform portability. The JVM provides a runtime environment and executes bytecode through its components: the bytecode verifier checks for errors, the class loader loads Java classes, the execution engine interprets bytecode into machine code, the garbage collector automatically frees unused memory, and the security manager monitors for security violations.
Java is an object-oriented programming language introduced in 1995. It is platform independent and used widely for web applications. Java code is compiled into bytecode that runs on a virtual machine, allowing the same code to run on different operating systems. Key features of Java include being simple, object-oriented, platform independent, robust, secure, distributed, multithreaded, and dynamic.
Java is an object-oriented programming language introduced in 1995. It is platform independent and used widely for web applications. Java code is compiled into bytecode that runs on a virtual machine, allowing the same code to run on different operating systems. Key features of Java include being simple, object-oriented, platform independent, robust, secure, distributed, multithreaded, and dynamic.
Introduction to Java Programming, Basic Structure, variables Data type, input...Mr. Akaash
This is First Lecture of java Programming which cover all basic points (ie. History and feature of java, Introduction to java, about variables data type and compilation....
The document provides an overview of Java programming concepts across 4 chapters. Chapter 1 discusses object-oriented programming principles like abstraction, encapsulation, and polymorphism. It also provides a brief history of computing paradigms. Chapter 2 discusses the Java platform, including key benefits like platform independence and security. It also explains the Java compilation and execution process. Chapter 3 covers Java fundamentals like the basic "Hello World" program structure, naming conventions, and basic data types in Java.
This document provides an overview of object-oriented programming and the Java platform. It discusses the history of computing and the development of object-oriented programming. It then describes key concepts of object-oriented programming like classes, objects, encapsulation, inheritance and polymorphism. The document also gives an introduction to the Java programming language, its benefits like portability and its components like the Java Runtime Environment. It provides details on compiling and running a simple Java program and the different phases involved.
The document provides an overview of Java programming concepts across 4 chapters. Chapter 1 discusses object-oriented programming principles like abstraction, encapsulation, and polymorphism. It also provides a brief history of computing paradigms. Chapter 2 discusses the Java platform, including key benefits like being platform independent and object-oriented. It explains the Java compilation and execution process. Chapter 3 covers basic Java concepts like the structure of a simple Java program, naming conventions, and primitive data types.
The document provides an overview of Java programming concepts across 4 chapters. Chapter 1 discusses object-oriented programming principles like abstraction, encapsulation, and polymorphism. It also provides a brief history of computing paradigms. Chapter 2 discusses the Java platform, including key benefits like platform independence and security. It also explains the Java compilation and execution process. Chapter 3 covers Java fundamentals like the basic "Hello World" program structure, naming conventions, and basic data types in Java.
Impurities of Water and their Significance.pptxdhanashree78
Impart Taste, Odour, Colour, and Turbidity to water.
Presence of organic matter or industrial wastes or microorganisms (algae) imparts taste and odour to water.
Presence of suspended and colloidal matter imparts turbidity to water.
This presentation highlights project development using software development life cycle (SDLC) with a major focus on incorporating research in the design phase to develop innovative solution. Some case-studies are also highlighted which makes the reader to understand the different phases with practical examples.
本資料「To CoT or not to CoT?」では、大規模言語モデルにおけるChain of Thought(CoT)プロンプトの効果について詳しく解説しています。
CoTはあらゆるタスクに効く万能な手法ではなく、特に数学的・論理的・アルゴリズム的な推論を伴う課題で高い効果を発揮することが実験から示されています。
一方で、常識や一般知識を問う問題に対しては効果が限定的であることも明らかになりました。
複雑な問題を段階的に分解・実行する「計画と実行」のプロセスにおいて、CoTの強みが活かされる点も注目ポイントです。
This presentation explores when Chain of Thought (CoT) prompting is truly effective in large language models.
The findings show that CoT significantly improves performance on tasks involving mathematical or logical reasoning, while its impact is limited on general knowledge or commonsense tasks.
How Binning Affects LED Performance & Consistency.pdfMina Anis
🔍 What’s Inside:
📦 What Is LED Binning?
• The process of sorting LEDs by color temperature, brightness, voltage, and CRI
• Ensures visual and performance consistency across large installations
🎨 Why It Matters:
• Inconsistent binning leads to uneven color and brightness
• Impacts brand perception, customer satisfaction, and warranty claims
📊 Key Concepts Explained:
• SDCM (Standard Deviation of Color Matching)
• Recommended bin tolerances by application (e.g., 1–3 SDCM for retail/museums)
• How to read bin codes from LED datasheets
• The difference between ANSI/NEMA standards and proprietary bin maps
🧠 Advanced Practices:
• AI-assisted bin prediction
• Color blending and dynamic calibration
• Customized binning for high-end or global projects
May 2025: Top 10 Read Articles Advanced Information Technologyijait
International journal of advanced Information technology (IJAIT) is a bi monthly open access peer-reviewed journal, will act as a major forum for the presentation of innovative ideas, approaches, developments, and research projects in the area advanced information technology applications and services. It will also serve to facilitate the exchange of information between researchers and industry professionals to discuss the latest issues and advancement in the area of advanced IT. Core areas of advanced IT and multi-disciplinary and its applications will be covered during the conferences.
WIRELESS COMMUNICATION SECURITY AND IT’S PROTECTION METHODSsamueljackson3773
In this paper, the author discusses the concerns of using various wireless communications and how to use
them safely. The author also discusses the future of the wireless industry, wireless communication
security, protection methods, and techniques that could help organizations establish a secure wireless
connection with their employees. The author also discusses other essential factors to learn and note when
manufacturing, selling, or using wireless networks and wireless communication systems.
First Review PPT gfinal gyft ftu liu yrfut goSowndarya6
CyberShieldX provides end-to-end security solutions, including vulnerability assessment, penetration testing, and real-time threat detection for business websites. It ensures that organizations can identify and mitigate security risks before exploitation.
Unlike traditional security tools, CyberShieldX integrates AI models to automate vulnerability detection, minimize false positives, and enhance threat intelligence. This reduces manual effort and improves security accuracy.
Many small and medium businesses lack dedicated cybersecurity teams. CyberShieldX provides an easy-to-use platform with AI-powered insights to assist non-experts in securing their websites.
Traditional enterprise security solutions are often expensive. CyberShieldX, as a SaaS platform, offers cost-effective security solutions with flexible pricing for businesses of all sizes.
Businesses must comply with security regulations, and failure to do so can result in fines or data breaches. CyberShieldX helps organizations meet compliance requirements efficiently.
First Review PPT gfinal gyft ftu liu yrfut goSowndarya6
Ad
Lecture java variable , data type, token
1. Java is a widely used object-oriented programming language and software platform that runs on billions
of devices, including notebook computers, mobile devices, gaming consoles, medical devices and many
others. The rules and syntax of Java are based on the C and C++ languages.
One major advantage of developing software with Java is its portability. Once you wrote code for a Java
program on a notebook computer, it can be easily moved to a mobile device. When the language was
invented in 1991 by James Gosling of Sun Microsystems (later acquired by Oracle), the primary goal was
to be able to "write once, run anywhere."
Structure of Java Program
A basic Java program consists of several components that create a functional application.
public class FirstJavaProgram
{
public static void main(String args[])
{
System.out.println("Hello World");
}
}
Introduction to JAVA
2. Key Features of Java
1. Platform Independent
Compiler converts source code to byte code and then the JVM executes the bytecode generated by the
compiler. This byte code can run on any platform be it Windows, Linux, or macOS which means if we
compile a program on Windows, then we can run it on Linux and vice versa. Each operating system has
a different JVM, but the output produced by all the OS is the same after the execution of the byte code.
That is why we call java a platform-independent language.
2. Object-Oriented Programming
Java is an object-oriented language, promoting the use of objects and classes. Organizing the
program in the terms of a collection of objects is a way of object-oriented programming, each of which
represents an instance of the class.
The four main concepts of Object-Oriented programming are:
•Abstraction
•Encapsulation
•Inheritance
•Polymorphism
3. 3. Simplicity
Java’s syntax is simple and easy to learn, especially for those familiar with C or C++. It eliminates
complex features like pointers and multiple inheritances, making it easier to write,
debug, and maintain code.
4. Robustness
Java language is robust which means reliable. It is developed in such a way that it puts a lot of
effort into checking errors as early as possible, that is why the java compiler is able to detect
even those errors that are not easy to detect by another programming language. The main
features of java that make it robust are garbage collection, exception handling, and memory
allocation.
5. Security
In java, we don’t have pointers, so we cannot access out-of-bound arrays i.e it
shows ArrayIndexOutOfBound Exception if we try to do so. That’s why several security flaws
like stack corruption or buffer overflow are impossible to exploit in Java. Also, java programs
run in an environment that is independent of the os(operating system) environment which
makes java programs more secure.
4. 6. Distributed
We can create distributed applications using the java programming language. Remote Method
Invocation and Enterprise Java Beans are used for creating distributed applications in java. The java
programs can be easily distributed on one or more systems that are connected to each other through an
internet connection.
7. Multithreading
Java supports multithreading, enabling the concurrent execution of multiple parts of a program. This
feature is particularly useful for applications that require high performance, such as games and real-time
simulations.
8. Portability
As we know, java code written on one machine can be run on another machine. The platform-
independent feature of java in which its platform-independent bytecode can be taken to any platform
for execution makes java portable. WORA(Write Once Run Anywhere) makes java application to
generates a ‘.class’ file that corresponds to our applications(program) but contains code in binary
format. It provides architecture-neutral ease, as bytecode is independent of any machine
architecture. It is the primary reason java is used in the enterprising IT industry globally worldwide.
9. High Performance
Java architecture is defined in such a way that it reduces overhead during the runtime and at some
times java uses Just In Time (JIT) compiler where the compiler compiles code on-demand basis where
it only compiles those methods that are called making applications to execute faster.
6. What is Byte Code in Java?
Byte Code in Java is an essential concept, serving as an intermediate representation of Java
code. This code isn't directly executed by the machine but is interpreted or compiled into
machine code by the Java Virtual Machine (JVM). The JVM interprets the Byte Code, making
Java platform independent.
This Byte Code is stored in .class files, which can be performed by the Java Virtual Machine
(JVM). The main purpose of Byte Code is to bridge the gap between the human-readable
source code and the machine-specific instructions that a computer's processor
understands.
Byte Code is not tied to any specific hardware or operating system (OS), making it a critical
factor in Java’s "write once, run anywhere" philosophy. The JVM is responsible for
interpreting or just-in-time compiling this Byte Code into native machine code suitable for
the specific platform on which the program is running.
7. How Does Byte Code Work?
To understand how Byte Code works, it's crucial to follow the process that occurs from the moment
you write a Java program to the point where it runs on your machine.
a) Compilation: When you write a Java program, the Java compiler (javac) converts the human-
readable source code into Byte Code, stored in ‘.class’ files. This Byte Code is designed to be
understood and executed by the JVM.
b) Execution: The JVM reads the Byte Code from ‘.class’ files and either interprets it or uses a Just-in-
time (JIT) compiler to convert it into native machine code. This optimises performance by executing
native code directly.
c) Platform Independence: Bytecode's power lies in its platform independence. The JVM abstracts
platform-specific details, allowing the same ‘.class’ files to run on any machine with a JVM, enabling
Java programs to run across different platforms without modification.
8. All three JDK, JRE and JVM are interdependent. JDK is Java Development Kit primarily meant
for Developers to develop Java based applications. JRE is Java Runtime Environment where
Java program runs. JDK carries JRE as an integral part of it. JRE can be installed seperately
as well on systems where no development is to be done and we only need to run the Java
based application or a java program is to be executed.
JDK, JRE and JVM
What is JDK?
JDK is an abbreviation for Java Development Kit which includes all the tools, executables, and
binaries required to compile, debug, and execute a Java Program. JDK is platform dependent
i.e. there are separate installers for Windows, Mac, and Unix systems. JDK includes both JVM
and JRE and is entirely responsible for code execution. It is the version of JDK that represents
a version of Java.
What is JRE?
JRE is a Java Runtime Environment which is the implementation of JVM i.e. the specifications
that are defined in JVM are implemented and create a corresponding environment for the
execution of code. JRE comprises mainly Java binaries and other classes to execute the
program like JVM which physically exists. Along with Java binaries JRE also consists of various
technologies of deployment, user interfaces to interact with code executed, some base
libraries for different functionalities, and language and util-based libraries.
9. What is JVM?
JVM (Java Virtual Machine) is an abstract machine that enables your computer to run a Java
program.
When you run the Java program, Java compiler first compiles your Java code to bytecode. Then, the
JVM translates bytecode into native machine code (set of instructions that a computer's CPU
executes directly).
Java is a platform-independent language. It's because when you write Java code, it's ultimately
written for JVM but not your physical machine (computer). Since JVM executes the Java bytecode
which is platform-independent, Java is platform-independent.
JVM is the abbreviation for Java Virtual Machine which is a specification that provides a runtime
environment in which Java byte code can be executed i.e. it is something that is abstract and its
implementation is independent of choosing the algorithm and has been provided by Sun and other
companies. It is JVM which is responsible for converting Byte code to machine-specific code. It can also run
those programs which are written in other languages and compiled to Java bytecode. The JVM performs the
mentioned tasks: Loads code, Verifies code, Executes code, and Provides runtime environment.
10. The JVM Architecture Explained
Every Java developer knows that bytecode will be executed by the JRE (Java Runtime Environment). But many don't
know the fact that JRE is the implementation of Java Virtual Machine (JVM), which analyzes the bytecode, interprets
the code, and executes it. It is very important, that we know the architecture of the JVM, as it enables us to write code
more efficiently.
What Is the JVM?
A Virtual Machine is a software implementation of a physical machine. Java was developed with the concept
of WORA (Write Once Run Anywhere), which runs on a VM. The compiler compiles the Java file into a
Java .class file, then that .class file is input into the JVM, which loads and executes the class file.
How Does the JVM Work?
JVM is divided into three main subsystems:
1.ClassLoader Subsystem
2.Runtime Data Area
3.Execution Engine
11. 1. ClassLoader Subsystem
Java's dynamic class loading functionality is handled by the ClassLoader subsystem. It loads, links. and initializes the class file when it refers to a class for the first
time at runtime, not compile time.
1.1 Loading
Classes will be loaded by this component. BootStrap ClassLoader, Extension ClassLoader, and Application ClassLoader are the three ClassLoaders that will help in
achieving it.
1.BootStrap ClassLoader – Responsible for loading classes from the bootstrap classpath, nothing but rt.jar. Highest priority will be given to this loader.
2.Extension ClassLoader – Responsible for loading classes which are inside the ext folder (jrelib).
3.Application ClassLoader –Responsible for loading Application Level Classpath, path mentioned Environment Variable, etc.
The above ClassLoaders will follow Delegation Hierarchy Algorithm while loading the class files.
1.2 Linking
4.Verify – Bytecode verifier will verify whether the generated bytecode is proper or not if verification fails we will get the verification error.
5.Prepare – For all static variables memory will be allocated and assigned with default values.
6.Resolve – All symbolic memory references are replaced with the original references from Method Area.
1.3 Initialization
This is the final phase of ClassLoading; here, all static variables will be assigned with the original values, and the static block will be executed.
12. 2. Runtime Data Area
The Runtime Data Area is divided into five major components:
1.Method Area – All the class-level data will be stored here, including static variables. There is only one method area per JVM, and it is
a shared resource.
2.Heap Area – All the Objects and their corresponding instance variables and arrays will be stored here. There is also one Heap Area
per JVM. Since the Method and Heap areas share memory for multiple threads, the data stored is not thread-safe.
3.Stack Area– For every thread, a separate runtime stack will be created. For every method call, one entry will be made in the stack
memory which is called Stack Frame. All local variables will be created in the stack memory. The stack area is thread-safe since it is not
a shared resource. The Stack Frame is divided into three sub entities:
1. Local Variable Array – Related to the method how many local variables are involved and the corresponding values will be
stored here.
2. Operand stack – If any intermediate operation is required to perform, operand stack acts as runtime workspace to perform
the operation.
3. Frame data – All symbols corresponding to the method is stored here. In the case of any exception, the catch block
information will be maintained in the frame data.
4.PC Registers – Each thread will have separate PC Registers, to hold the address of current executing instruction once the instruction
is executed the PC register will be updated with the next instruction.
5.Native Method stacks – Native Method Stack holds native method information. For every thread, a separate native method stack will
be created.
13. 3. Execution Engine
The bytecode, which is assigned to the Runtime Data Area, will be executed by the Execution Engine. The Execution
Engine reads the bytecode and executes it piece by piece.
1.Interpreter – The interpreter interprets the bytecode faster but executes slowly. The disadvantage of the interpreter is
that when one method is called multiple times, every time a new interpretation is required.
2.JIT Compiler– The JIT Compiler neutralizes the disadvantage of the interpreter. The Execution Engine will be using the
help of the interpreter in converting byte code, but when it finds repeated code it uses the JIT compiler, which compiles the
entire bytecode and changes it to native code. This native code will be used directly for repeated method calls, which
improve the performance of the system.
1.Intermediate Code Generator – Produces intermediate code
2.Code Optimizer – Responsible for optimizing the intermediate code generated above
3.Target Code Generator – Responsible for Generating Machine Code or Native Code
4.Profiler – A special component, responsible for finding hotspots, i.e. whether the method is called multiple times or
not.
3.Garbage Collector: Collects and removes unreferenced objects. Garbage Collection can be triggered by
calling System.gc(), but the execution is not guaranteed. Garbage collection of the JVM collects the objects that are created.
Java Native Interface (JNI): JNI will be interacting with the Native Method Libraries and provides the Native Libraries
required for the Execution Engine.
Native Method Libraries: This is a collection of the Native Libraries, which is required for the Execution Engine.
14. What is JRE?
JRE (Java Runtime Environment) is a software package that provides Java
class libraries, Java Virtual Machine (JVM), and other components that are
required to run Java applications.
JRE is the superset of JVM.
15. What is JDK?
JDK (Java Development Kit) is a software development kit required to develop
applications in Java. When you download JDK, JRE is also downloaded with it.
In addition to JRE, JDK also contains a number of development tools (compilers,
JavaDoc, Java Debugger, etc).