Features of Java Programming language.
Following are the some basic features of java programming language.
- Simple: This is simple because it is easy to learn and syntax of java is based on C++.
- Object-Oriented: Java code is the combination of various types of objects which combines data and its behavior. Programmers can do this because java follows the OO paradigm.
- Portable: Java is portable because it supports the concept of ‘read-once-write-anywhere’. Java achieved this feature because of bytecodes. For instance, if we write a Hello program and saved as “Hello.java” then it can be converted into “Hello.class” (bytecode) which can be easily executed or run on every machine.
- Platform Independent: It is a platform independent language because to execute java does not depend on the operating system. Java comes with its platform where codes are executed.
- Secured: Java does not support to the explicit pointers concept so it is more secure. Java is more secured than other because it also offers the concepts Exception handling and byte code.
- Robust: Java is robust because of the following features:
- Exception Handling
- Automatic garbage collection etc.
It also uses Strong memory management which makes its strong programing language.
- Architecture Neutral: Java does not depend on the architecture so it is an architectural neutral. For instance, C data types are vary according to the system architecture (32 bit or 64 bit) but in java this is not exist.
- Interpreted: To execute the programs java uses JIT (Just-in-time) interpreter along with the compiler.
- High Performance: Due to java byte code (which is near to native code) it is faster than other traditional programming language.
- Multi threaded: Using multiple threads programmer can write java programs to deal with various tasks at once. One of the main benefits of multi threading is that it is not take memory for every thread.
- Distributed: Programmers can create distributed applications in java, so it is distributed. Following concepts are used for creating distributed applications:
- RMI
- EJB
- Dynamic: In java classes are loaded on demand. This feature is known as dynamic loading of class, so java is dynamic language.
Above is the features of Java Programming Language. Below is the details of JVM.
Java virtual machine?
Java virtual machine or JVM is a run-time engine that calls the main method of the present java code. So JVM enables the machine to run the java program. When JVM compiles the java code then the code is converted into the Bytecode and this Bytecode is machine independent and more close to the native code.
Must Read – Comparison between JVM, JRE and JDK