Features of java

Features of java

  • Simple
  • Platform independent
  • Architectural neutral
  • Portable
  • Multi threading
  • Distributed
  • Networked
  • Robust
  • Dynamic
  • Secured
  • High performance
  • Interpreted
  • Object Oriented Programming Language

Simple

JAVA is simple because of the following factors:

JAVA is free from pointers hence we can achieve less development time and less execution time [whenever we write a JAVA program we write without pointers and internally it is converted into the equivalent pointer program].

Rich set of API (application protocol interface) is available to develop any complex application.

JAVA contains user friendly syntax’s for developing JAVA applications.

Platform Independent

A program or technology is said to be platform independent if and only if which can run on all available operating systems.

The languages like C, Cpp are treated as platform dependent languages since these languages are taking various amount of memory spaces on various operating systems . When we write a C or Cpp program on dos operating and if we  try to transfer that program to Unix operating system, we are unable to execute since the format of these operating systems are different and more over the C, Cpp software does not contain any special programs which converts one format of one operating system to another format of other operating system]. The language like JAVA will have a common data types and the common memory spaces on all operating systems and the JAVA software contains the special programs which converts the format of one operating system to another format of other operating system. Hence JAVA language is treated as platform independent language

Architectural Neutral

A language or technology is said to be architectural neutral which can run on any available processors in the real world. The languages like C, Cpp are treated as architectural dependent. The language like JAVA can run on any of the processor irrespective of their architecture and vendor.

Portable:

A portable language is one which can run on all operating systems and on all processors irrespective their architectures and providers. The languages like C, Cpp are treated as non- portable languages whereas the language JAVA is called portable language.

Multi Threading:

 

Definitions:

  1. A flow of control is known as thread.
  2. A multi threaded program is one in which there exists multiple flow of controls i.e., threads.
  3. A program is said to be multi threaded program if and only of there exists n number of sub- programs. For each and every sub-program there exists a separate flow of control. All such flow of controls are executing concurrently. Such flow of controls is known as threads. Such type of applications is known as multi threading applications.
  4. The languages like C, Cpp are treated as threads as single threaded modeling languages
  5. A foreground thread is one which always executes user defined sub-programs. In a JAVA
  6. program there is a possibility of existing n number of foreground threads.A background thread is one which always monitors the status of foreground thread. In each and every JAVA program there exists only one background thread.
  7. Hence background thread will be created first and later foreground thread will be created.

Distributed:

applications we must require architecture called trusted network architecture. To develop these applications we require a technology called J2EE. Distributed applications are preferred by large scale organizations.

A service is a said to be a distributed service which runs in multiple servers and that service

can  be  accessed  by  n  number  of  clients  across  the  globe.  In  order  to  develop   distributed

applications we must require architecture called trusted network architecture. To develop these applications we require a technology called J2EE. Distributed applications are preferred by large scale organizations.

High Performance:

Java is one of the high performance language because of the following factors.

  1. Magic of byte code
  2. Garbage collection facility

Interpreted

In the older version of java compilation phase is very faster and interpretation phase is very slow.

in order to speedup the interpretation phase of java,sun microsystem has developed a program called ‘JIT’ (just-in-compiler) and added as part of JVM hence as an today interpretation phase of java is more faster than compilation phase of java .

Dynamic

Java is considered as Dynamic because of Bytecode. A source code writen in one platform, the same code can be executed in any platform. And it also loads the class files at runtime. anything that happes at runtime is considered as Dynamic, so the java is.

In java programming memory space is allocated at run time for variables.java programming always follows dynamic memory allocation but not static.
Java also has feature of Automatic memory management and garbage collection

Robust

Java is Robust because it is highly supported language. It is portable across many Operating systems. Java also has feature of Automatic memory management and garbage collection. Strong type checking mechanism of Java also helps in making Java Robust. Bugs, especially system crashing bugs, are very rare in Java. also java support exception handling concept.

Secure

Bytecode it the key that makes Java language most secure and Portable.

When you compile your java program then on successful compilation , java compiler (javac) generates a class file with .class extension which contains the Bytecodes of your java program. Now the Bytecodes which are generated are secure and they can be run on any machine (portable) which has JVM.

Leave a Reply