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

Features of Java

Uploaded by

rupendra10980
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 views7 pages

Features of Java

Uploaded by

rupendra10980
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
You are on page 1/ 7

Features of java

Object oriented : Java is an object-oriented programming language where everything is an object.


Object-oriented programming means that we organize our software as a combination of various
types of objects that incorporate both data and behavior.
Object oriented consisting of 1) Class
2) Object
3) Abstraction
4) Encapsulation
5) Inheritance
6) Polymorphism

Simple : Java is easy to learn, with a syntax that is simple, clean, and easy to understand.

Portable : Java's portability allows programs to run on various platforms without


modification. This is achievable because Java code is compiled into bytecode, which is
independent of the underlying hardware and operating system. The JVM on each system
interprets this bytecode, ensuring platform compatibility.
Platform independent : Java is platform-independent because it differs from other languages
like C, C++, etc., which are compiled into platform-specific machines. In contrast, Java is a "write
once, run anywhere" language. A platform refers to the hardware or software environment in which a
program runs. Ie why it is called WORA (Write Once And Run Anywhere) .

Security : Java provides more security when compared to other programming languages
1. It does not allow pointers
2. Class loader
3. Byte loader
4. Security manager
Note : The JVM provides the above 3 features by default
Robust : Java is a Robust language
1. Strong Memory management
2. It does not allow pointers
3. Automatic Garbage Collector
Architecture-Neutral : Java is architecture-neutral because it lacks implementation-dependent
features; for instance, the size of primitive types is fixed.

Interpreted : Java's interpreted feature means that Java code is not directly converted into machine
code by a compiler. Instead, first, it compiled into bytecode, then executed by the JVM through
an interpreter. It allows Java to be platform-independent, meaning the same bytecode can run on any
system with a JVM.
High-Performance :Java is faster than traditional interpreted programming languages because Java bytecode is
"close" to native code. However, it is still slightly slower than compiled languages, such as C++. As an
interpreted language, Java is slower than compiled languages like C and C++.
Multithreaded : A thread is like a separate program that executes concurrently. We can write Java programs to
handle many tasks simultaneously by defining multiple threads. The main advantage of multi-threading is that
it does not occupy memory for each thread but rather shares a common memory area. Threads are crucial for
multimedia, web applications, and more.
Distributed :Java is designed for distribution, allowing users to develop distributed applications effectively.
RMI and EJB facilitate the creation of these distributed applications. This feature enables access to files by
invoking methods from any machine on the Internet.
Dynamic : Java is a dynamic language that supports the on-demand loading of classes. It also allows
the use of functions from its native languages, namely C and C++. Java supports dynamic
compilation and automatic memory management, including garbage collection.

You might also like