Java Features
The important features of Java language are
- Simple : As the word says - "Java is simple".That means it easy to learn java.You don't need any prerequisites like knowledge in any other language.It is simply like a nursery level programming language.Most of the complex and confusing features of other languages (C,C++) like pointers,multiple inheritance are removed from java
- Platform Independent : It means that if we write java program once, we can run on any platform (Windows,Linux,Mac) without performing any change. ie, Java follows Write Once Run Anywhere principle(WORA).
- Architecture Neutral : Any changes in your system like upgrading operating systems,processor and system resources will not force any changes in java programs.This is because java programs never communicate with the platform directly.
- Portable : Just like your mobile number is portable from one service provider to another without changing your mobile number,we can carry java byte code from any platform to any other platform without making any changes.(ie,migrating a java program from Windows machine to Linux machine)
- Secure : Java program never communicates directly with the machine.First converted into byte code and then converted into machine code by the JVM.If the byte code contains any problem or if it not properly formatted ,then the JVM won't allow that code to run and will raise VerifyError.Internally inside JVM, Bytecode verifier is responsible to verify byte code.Hence java program won't cause any problem to the system.
- Object Oriented Programming language : Java is Object Oriented Programming languages like C++.Most of the times in java, we have to handle everything in terms of Object. Java supports the following OOP features like Inheritance ,Encapsulation,Polymorphism etc
- Multithreading : It means multiple thread can run simultaneously and perform specified tasks simultaneously. This will improve the performance of the application. Java provides built-in support for multithreading by providing rich API.But Java won't parallalizes code execution automatically.It provides libraries.By using those we have to write code explicitly for parallel execution.
- Robust : The chance of failure of a java program is very very less.Because java is strongly typed, any problem with respect to types will be identified at compile time.There is no chance of memory related problems since java provides Garbage Collector.Java provides inbuilt exception handling, which prevents any abnormal termination of the program at runtime.Since java is platform independent ,it runs on any platform.Because of all these features java is said to be robust.
- Distributed : Java 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.
- Dynamic : Java is a dynamic language. It supports the dynamic loading of classes. It means classes are loaded on demand. It also supports functions from its native languages, i.e., C and C++.
Comments
Post a Comment