Java Features
Java Features
By
P.Rajeswari,
DCE
Features of Java
The features of Java are also known as java buzzwords.
A list of most important features of Java language is given below.
1. Simple
2. Object-Oriented
3. Portable
4. Platform independent
5. Secured
6. Robust
7. Architecture neutral
8. Interpreted
9. High Performance
10. Multithreaded
11. Distributed
12. Dynamic
Simple
• Java is very easy to learn, and its syntax is simple, clean and
easy to understand. It is simple because of the following factors:
1. It is free from pointer due to this execution time of application is improved.
2. It has Rich set of API (application protocol interface).
3. It has Garbage Collector which is always used to collect un-
Referenced (unused) Memory location for improving performance of a
Java program.
4. It contains user friendly syntax for developing any applications.
Object-oriented
• Java is an object-oriented programming language. Everything in Java is an object.
• Object-oriented means the software as a combination of different types of
objects that incorporates both data and behavior.
• Object-oriented programming (OOPs) is a methodology that simplifies software
development and maintenance by providing some rules.
• Basic concepts of OOPs are:
• Object
• Class
• Inheritance
• Polymorphism
• Abstraction
• Encapsulation
Platform Independent
Java is platform independent because it is different from other
languages like C, C++, etc. which are compiled into platform
specific machines while Java is a write once, run anywhere
language.
• In C programming, int data type occupies 2 bytes of memory for 32-bit architecture and 4
bytes of memory for 64-bit architecture.
• However, it occupies 4 bytes of memory for both 32 and 64-bit architectures in Java
•Portable
• Java is portable because it facilitates you to carry the Java bytecode to
any platform. It doesn't require any implementation.
•High-performance
• Java is faster than other traditional interpreted programming
languages because Java bytecode is "close" to native code. It is still a
little bit slower than a compiled language (e.g., C++). Java is an
interpreted language that is why it is slower than compiled languages,
e.g., C, C++, etc
• Distributed
• Java is distributed because it facilitates users to create distributed
applications in Java. RMI and EJB are used for creating distributed
applications. This feature of Java makes us able to access files by
calling the methods from any machine on the internet.
Multi-threaded
• A thread is like a separate program, executing concurrently.
• A flow of control is known as a thread.
• 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.
References :
www.Javatpoint.com
www.sitebay.com