0% found this document useful (0 votes)
20 views6 pages

Features

Download as ppt, pdf, or txt
Download as ppt, pdf, or txt
Download as ppt, pdf, or txt
You are on page 1/ 6

Features of Java

List of Features in Java


There are given many Features of JAVA. The JAVA Features given below are
Simple and Easy to Understand.
-Simple
-Object-Oriented
-Portable
-Platform Independent
-Secured
-Robust
-Architecture Neutral
-Dynamic
-Interpreted
-High Performance
-Multithreaded
-Distributed

2
• Simple:-
- Syntax is based on C++ (So easier for programmers to learn it after C++).
- Removed many confusing and/or rarely-used features e.g., explicit pointers,
operator overloading etc.
- No need to remove unreferenced objects because there is Automatic
Garbage Collection in java.
• Object-Oriented:-
- Object-oriented programming(OOPs) is a methodology that simplify software
development and maintenance by providing some rules.
- Basic concepts of OOPs are:-
- Object
- Class
- Inheritance
- Polymorphism
- Abstraction
- Encapsulation

3
• Platform Independent:-
- Java code can be run on multiple
platforms.
Class File
- e.g. Windows, Linux, Sun Solaris,
Mac/OS etc.
- Java code is compiled by the
Compiler and Converted into Windows
Linux JVM MAC/iOS JVM
bytecode. JVM

- This bytecode is a platform-


independent code because it can Windows Linux MAC/iOS
be run on multiple platforms Operating Operating Operatin
- i.e.Write Once and Run System System g System
Anywhere(WORA).
•Secured:-
- Java is Secured
because: Virtual
- No Explicit Pointer

- Java program run inside


Machine Sandbox

4
• Robust(All Above Points Makes JAVA Robust)

- Robust simply means Strong.


- Java uses strong Memory Management.
- There are Automatic Garbage Collection in JAVA.
- There is Exception Handling and Type Checking Mechanism in JAVA.
• Architecture-Neutral:-
- There are No implementation Dependent Features
- e.g. size of primitive types is fixed.
- In C programming, int Data Type occupies 2 Bytes of Memory for 32-bit
Architecture and 4 Bytes of Memory for 64-bit Architecture. But in java, it
occupies 4 Bytes of Memory for Both 32 and 64 bit Architectures.
• Portable:-
- We may carry the JAVA Bytecode to Any Platform.
• High-Performance:-
- Java is faster than traditional interpretation since byte code is "close" to
native code still somewhat slower than a compiled language (e.g., C++)

5
• Multithreaded:-
- A Thread is like a Separate Program, executing Concurrently.
- We can write Java programs that Deal with many Tasks at once by defining
Multiple Threads.
- The main Advantage of Multi-Threading is that it doesn't occupy memory for
each thread.
- It shares a Common Memory Area.
- Threads are important for Multi-Media, Web applications etc.
• Distributed:-
- We can create Distributed Applications in Java.
- RMI (Remote Method Invocation) and EJB (Enterprise JavaBeans) are used for
creating Distributed Applications.
- We may access files by calling the methods from any machine on the Internet.

You might also like