What is the feature of JAVA language ?

What is the feature of JAVA?

Last updated:9/5/2019 4:55:12 AM

1 Answers

Rahul Roi
Rahul Roi

These are the following features in Java Programming Language.

  1. Simple:  The Java language is easy to learn. That is the syntax of Java is based on C++ which makes easier to write the program in it.
  2. Object-Oriented:  The Java language follows the object-oriented paradigm which allows us to maintain our code as the combination of different type of objects that incorporates both data and behavior. 
  3. Portable:  The Java language supports read-once-write-anywhere approach. You may execute the Java program on every machine. That is the Java program (.java) is converted to bytecode (.class) which can be easily run on every machine.
  4. Platform Independent:  The Java programming language is a platform-independent programming language. It is different from other programming languages like C and C++ which needs a platform to be executed. Java comes with its platform on which its code is executed. Java doesn't depend upon the operating system to be executed.
  5. Secured: The Java is secured because it doesn't use explicit pointers. Java also provides the concept of ByteCode and Exception handling which makes it more secured.
  6.  Robust: The Java language is a strong programming language as it uses strong memory management. The concepts like Automatic garbage collection, Exception handling, etc. make it more robust.
  7.  Architecture Neutral: The Java language is architectural neutral as it is not dependent on the architecture. Into C language, the size of data types may vary according to the architecture (32 bit or 64 bit) which doesn't exist in Java.
  8.  Interpreted: The Java language uses the Just-in-time (JIT) interpreter along with the compiler for the program execution.
  9.  High Performance: The Java language 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++).
  10.  Multithreaded: You can write Java programs that deal with many tasks at once by defining multiple threads. That is the main advantage of multi-threading is that it doesn't occupy memory for each thread. Its shares a common memory area. Threads are important for multi-media, Web applications, etc.
  11. Distributed: The Java language 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.
  12. Dynamic: The Java language is a dynamic language. It supports dynamic loading of classes. It means classes are loaded on demand. It also supports functions from its native languages, i.e., C and C++.