0% found this document useful (0 votes)
9 views2 pages

Class 2

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

Class 2

Java
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 2

Date: 23-04-2024

__________________

Features of Java:
------------------------

1. Simple:
--------------
-> 90% of Java syntax has been derived from C++ so that makes it simple to learn
-> In Java the complicated features like cyclic inheritance, multiple
inheritance... are not allowed
-> In Java we don't need to delete explicitly the unreferenced objects because it
has been maintained by automatic garbage collector

2. Object Oriented:
---------------------------
-> Everything from the class structure like data members and methods has been
accessed by the usage of the objects. By the usage of OOPS methodology we can
create well defined application structure for the software development
-> Classification:
=> Objects
=> Class
=> Abstraction
=> Encapsulation
=> Inheritance
=> Polymorphism

3. Platform Independent:
-----------------------------------
-> In other programming languages like C++, the source code will be compiled into
the specific platform
-> In Java, write once and run anywhere concept is used
-> Most importantly we achieve platform independency by the usage of JVM through
which we can run on many platforms

compiled JVM
source code (.java files) -----------------------> bytecode (.class files)
-------------------------> Output on any Platform (Windows/Linux/Mac)

4. Secured:
----------------
-> In Java we can't able to access the address location of the object like in other
languages
-> The pointer concepts are allowed implicitly (not explicitly) in Java Programming
that added the security level
-> In Java by having the class loader, byte code verifier we can achieve the
multiple security layer

5. Robust:
---------------
The term robust refers strong.
-> In Java we are having the strong memory management which is done with the help
of automatic garbage collector
-> The role of garbage collector is to find the unreferenced variables, methods and
objects from the class at the run time
-> It will remove the memory allocation for all the unreferenced types

6. Portable:
-----------------
-> The hardware and software requirement to use Java is very low with the feature
of platform independency

7. Architecture Neutral:
------------------------------
-> The size of primitive data types are fixed in Java programming language
-> In C programming,
=> for int a=10, the memory allocation for variable in 32 bit architecture is
2 byte and the memory allocation for variable in 64 bit architecture is 4 byte
-> In Java,
=> for int a=10, the memory allocation for variable in 32 bit architecture is
4 byte and the memory allocation for variable in 64 bit architecture is 4 byte

8. High Performance:
------------------------------
-> By having all the above features we can represent the Java as high performance
programming language
___________________________________________________________________________________
________

=> In order to learn how the implementation of the libraries works we must need to
know JDK, JRE and JVM

JDK:
------
-> JDK refers Java Development Kit
-> It contains the developmental tools like compiler (javac), interpreter and other
few resource has been provided by the JDK which helps in the execution of the JRE
-> Based on the JDK we can create different applications

JRE:
------
-> JRE refers Java Runtime Environment
-> It contains a set of libraries and also jar files
-> By the usage of jar files we can execute the JVM inside the JRE
-> It provides the environment to execute the JVM

JVM:
-------
-> JVM refers Java Virtual Machine
-> It is used to provide the run time environment to execute the bytecode
-> JVM is responsible to run the programs and convert the programs in different
files
-> The role of JVM is to
=> Load the code
=> Verify the code
=> Run the code
=> Conversion of code
___________________________________________________________________________________
________

You might also like