Thursday, 27 February 2014

Features of Java

Today we will discuss the features of Java.
This language has become very popular.The main reason for its popularity is its brilliant features.
The main features of java are as follows-
  • Simplicity-It is a very simple language. It is simple in this sense that anyone who knows C or C++ programming language, he can use it very easily.The concept of Pointers has been totally eliminated from this language.Some other difficult concepts of C and C++ has also been removed from it.
  • Object-Oriented- Java is an object oriented programming language.This means it uses the concept of objects and classes.Anything which exists in reality and can be distinguished fro others is called Object. Whereas the group of objects which have same behavior(properties + Functions) belongs to the same group called class. 
  • Distributed-Information is distributed on various computers on a network.Using java we can write programs and can share it to the various clients.This is possible because java handles the protocols like TCP/IP and UDP.
  • Robust-Robust means strong.Java programs are very strong and cannot crash easily.Main reason is that java has better inbuilt Exception handling feature.Another feature which makes it robust is that User need not allocate or deallocate memory in java. Memory is allocated or deallocated by JVM(Java Virtual Machine)itself due which there is less chance to crash the program.
  • Secure-Security problems like tempering impersonation virus threats can be eliminated by using java on Internet.
  • System Independence-Java Program's byte code is system independent.It can run on any processor and operating systems.
  • Portablity- Java programs are portable.Portable in this sense that it gives same result on any machine.
  • Interrupted- Java programs are compiled to generate byte code.This byte code is interpreted by interpreter in JVM .Any other language uses either compiler or inerpreter to execute its programs . But java uses both Interpreter and compiler to execute its programs.
  • Multithreading-A thread is a individual process to execute a group of statements.JVM uses several threads to execute different blocks of code.Using multiple threads is called multithreading.


No comments:

Post a Comment