0% found this document useful (0 votes)
3 views23 pages

Java Architecture Overview and Components

Uploaded by

dhayananthb07
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views23 pages

Java Architecture Overview and Components

Uploaded by

dhayananthb07
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd

JAVA

ARCHITECTURE
TEAM MEMBERS

• DHAYANANTH B
• DHARANIDHARAN U
• THARUN CM
Java Programming
• Java is a widely-used programming language for coding web
applications.
• Java is a multi-platform, object-oriented, and network-centric
language.
• It is a fast, secure, reliable programming language for coding.

Uses:
1. Game Development
2. Cloud computing
3. Big Data
4. Artificial Intelligence
5. Internet of Things
Java Architecture
• Java Architecture explains each and every step of how a
program is compiled and executed.
• Java Architecture is a collection of components,
i.e., JVM, JRE, and JDK.
• It integrates the process of interpretation and
compilation.
• It defines all the processes involved in creating a Java
program.
COMPONENTS OF JAVA ARCHITECTURE

The Java architecture includes the three main


components:
1. Java Virtual Machine (JVM)
2. Java Runtime Environment (JRE)
3. Java Development Kit (JDK)
Java Architecture
Java Architecture
Java Architecture can be explained by using the
following steps:

1. There is a process of compilation and interpretation in


Java.
2. Java compiler converts the Java code into byte code.
3. After that, the JVM converts the byte code into
machine code.
4. The machine code is then executed by the machine.
Java Architecture – Code Conversion
Java Architecture – Code Conversion
Java Virtual Machine
• The main feature of Java is WORA.
• WORA stands for Write Once Run Anywhere.
• The feature states that we can write our code once and use it
anywhere or on any operating system.
• Our Java program can run any of the platforms only because
of the Java Virtual Machine.
• It is a Java platform component that gives us an environment
to execute java programs.
• JVM's main task is to convert byte code into machine code.
• JVM, first of all, loads the code into memory and verifies it.
After that, it executes the code and provides a runtime
environment.
Java Runtime Environment (JRE)

• It provides an environment in which Java programs are


executed.

• JRE takes our Java code, integrates it with the required


libraries, and then starts the JVM to execute it.
Java Development Kit (JDK)

• It is a software development environment used in the


development of Java applications and applets.

• Java Development Kit holds JRE, a compiler, an interpreter or


loader, and several development tools in it.
POLYMORPHISM
POLYMORPHISM
• Polymorphism means "many forms", and it occurs when
we have many classes that are related to each other by
inheritance.
Why is Polymorphism Important in Java?
Polymorphism allows you to work with objects of different
classes through a common interface, promoting code
reusability and flexibility.
Types of Polymorphism:
• Compile-time Polymorphism also known as method
overloading.
• Runtime Polymorphism also known as method
OVERLOADING

Compile-time polymorphism, also


known as static polymorphism or
method overloading, occurs when
multiple methods in the same class
have the same name but different
parameters.

The compiler determines which method


to call based on the number or type of
arguments provided during method
invocation.
OVERLOADING
OVERLOADING
OVERLOADING
OVERRIDING

Method overriding allows a


subclass to provide a specific
implementation of a method
that is already defined in its
superclass. This allows objects of
the subclass to be treated as
objects of the superclass.
OVERRIDING
OVERRIDING

Method overriding allows a


subclass to provide a specific
implementation of a method
that is already defined in its
superclass. This allows objects of
the subclass to be treated as
objects of the superclass.
BENEFITS

• Code Reusability
• Flexibility and Extensibility
• Easier Maintenance
Thank You

You might also like