April 13, 2015

Java Features

There are following features of the java which we will going to understand one by one...


  1. Simple
  2. Object-oriented
  3. Platform-independent
  4. Secured
  5. Robust
  6. Multithreaded



  • Simple
Java is said to be a simple language it is because java is based on the very popular language C++ means the syntax of the Java language is based on C++, so the programmers of the C++ can easily be moved from C++ to Java. Even the C++ programmers will enjoy the codding java programs because as like C++ we need not to do any kind of cleaning process for unreferenced objects(like destructors in C++). It is done by JVM automatically by garbage collections.

  • Object-oriented
Java is an object-oriented language but not fully/pure object-oriented. There are lot's of dicussion on the StackOverflow about this topic. The truth is it is not fully object-oriented language. The main and very first reason is java is still supporting/uses the primitive type (int,float,long,double,etc). 

  • Platform-independent
Java is platform-independent language which means the program written/tested on a platform can run on any other platform. For example, assume we have written our first program "Hello World" in Windows platform after compiling and running it, take the ".class" of that program and run that on any other operating system like Mac or Linux having JRE(Java Runtime Environment) installed in it.

  • Secured
Java is also said to be a secure language. The reason is it doesn't support any type of pointers in our application. Programs will run inside the JVM unlike C++ which uses operating systems' runtime environment. 

  • Robust
Simply robust means strong/powerfull. Java uses a powerfull memory management. It is lack of pointers which avoids security problems.

  • Multithreaded
Java is a multithreaded language. Multi threading is a very important and very useful feature of java. When we want to execute two processes simultaneously at that time the multi threading will helpful. 

Above listed and explained features are important features of the java.

1 comment: