Wednesday, February 12, 2014

Features of Java

Lets look at the features of Java that makes it different from other programming languages.

1. Simple

2. Platform independent

3. Secured

4. Robust

5. Multithread

5. Distributed

6. Object oriented

7. Portable

8. Dynamic

------------------------------------------------------------------------------------------------------------

Java is Simple when compared syntactically with c++, with some minor changes.

------------------------------------------------------------------------------------------------------------

Java is platform independent, as we have already seen in our previous post about platform now let us find more details about java as a platform.

Java is software platform which has it's own run time environment and API and it run's on top of hardware platform.

Now moving on to the key point of platform independent, when the java code is compiled by the Javac compiler it is converted to the class file and later this class file is converted to bytecode by JVM. Please note that the bytecode that is generated is platform independent, in the sense this bytecode can be executed on any platform for example(windows,Linux, Solaris). This is the reason Java is platform independent.

This make Java unique

------------------------------------------------------------------------------------------------------------

Java is secured because programs are executed inside a virtual machine sandbox, as we know that java as its own run time this make its more secured.

In java there is no concept of pointers which makes it more secure.

Also they are 3 more features that make java secured which are Classloaders,bytecode verifier and security manager and this topics would be discussed in a separate post

------------------------------------------------------------------------------------------------------------

Robust means Strong, what make Java Robust, it lacks in pointers and security problems are avoided, it automatically performs garbage collection, Handling exceptions.

------------------------------------------------------------------------------------------------------------

Java is multithreaded, in the sense it performs multitask by sharing the same memory using threads.

------------------------------------------------------------------------------------------------------------

Java is used to create distributed application that allows to access file from different machine using internet.

---------------------------------------------------------------------------------------------------------

Java use object oriented methodology which make software development easy and maintainable, by following the simple rules like Encapsulation.Polymorphism,Inheritance,Abstraction

---------------------------------------------------------------------------------------------------------

Java is portable as we know that the bytecode is platform independent and thus can be executed on any platform

>>>Security
------------------------------------------------------------------------------------------------------------