👉 Features Of Java
JAVA Features |
The Java Features(buzzword) given below are simple and easy to understand :
1). Simple
2). Secure
3). Portable
4). Object-Oriented
5). Robust
6). Multi-threaded
7). Platform Independent(Architecture-Neural)
8). Interpreted & Compiler
9). Distributed
10). Dynamic
11). High Performance
1)Simple:-
→ Learning Java is said to be simple if you have some basic knowledge of C/CPP. Yes, java adopts many syntaxes of C- language and if one understands the concepts of object-oriented programming, then java will be much easier.Many syntax like the comment, declaring variable etc. are same as C and CPP. Also, in java, many of confusing concept of C++ are removed and many are cleared.
2)Secure :-
→Security is the most important need for any programming language. Any outside entity should not access our program as it can harm or steal sensitive information. While downloading the file from the internet there is a big risk of viral infection. In case of java, there is no risk of it. Because java provides a firewall between your computer and the application from which the computer download files. Java doesn't allow to access other parts of your program. So using a java powered web browser you can download any java applet program without fear.
3)Portable :-
→A java program is fully portable. So to make program portable, Java compiler generates executable code know as Bytecode. Bycode is then interpreted via JVM. This Bytecode is in machine language code which every machine can read. And secondly, size of primitive data type can be varied from machine to machine. That is the main benefit of portability.
4)Object-Oriented:-
→ Java is a pure object-oriented programming language. In OOP language, the main focus is on the data and methods. Everything to be processed is put in the methods using data i.e. member variable.
→ Basic concept of OOP.
1. class
2. object
3. Inheritance
4. polymorphism
5. encapsulation
6. abstraction
5)Robust:-
→ Java is said to be robust(strong) language. Java is strongly typed language there is strict data type checking at compile time as well as runtime. Moreover, two main reasons that make it very robust that is Memory management and Exception handing.
6)Multi-threaded:-
→ A thread is sub(child) process. Using multi-threading you can execute more than one thread simultaneously. Java has a thread class and its method to accomplish this. This feature makes no bargaining in java's platform independent feature.
7)Platform Independent(Architecture-Neural) :-
→ In java, the source code is first compiled by java compiler and then the Bytecode is generated. Bytecode is in machine level language so that every machine can understand it. The Bytecode is interpreted using JVM. Therefore the java program is written on any platform and can be run on any other platform.This feature makes java platform independent.
8)Interpreted & Compiler
→ The execution of java program is a two-step process. The 1st source code is compiled using java compiler and Bytecode is generated. The Bytecode which is machine independent is then interpreted using JVM. Thus, in fact java interprets the Bytecode and given output.
9)Distributed:-
→ Java is very good for network programming like Client/Sever architecture. A method on one PC can be invoked by the object on another PC. This is done by RMI. Thus, java can be used in the distributed environment.
10)Dynamic:-
→ Java is more dynamic than C/CPP. In java libraries can add new method and variable as needed. You can get type information of variable easily. This is useful when you want to add or update code while downloading programs from the internet.
11)High Performance:-
→ This feature is the result of above two features. As java generates Bytecode which is machine independent and is interpreted by the java virtual machine there is a great performance rise.
Related Topic :-