JAVA
Before learning any subject we should first know about the feature of it. At least we should know some of the special feature/characteristics.
Important features of Java.
- Simple.
- Secure.
- Compiled and Interpreted.
- Portable.
- Platform Independent.
- Object-oriented.
- Robust.
Explaination.
1. Simple.
Java is said to be quite simple language. It is easy to learn. It is said to be simple because complex features like operator overloading, multiple inheritance, pointer and explicit memory location does not support.
2. Secure.
Java has a virtual firewall between the application and the computer, meaning java codes are limited with in the Java Runtime environment, an environment where java program are executed.
Thus, it does not allows unauthorized access that is, access without permission is not allowed on the system resource.
3. Compiled and interpreted.
Compiler and Interpreter are two different stages to execute program.
- Java compiler, translates source code, the program we write into an intermediate code called byte code (set of instruction in 1,0)
- Java interpreter, it is also known as Java Virtual Machine (JVM) which translates byte code into the machine understandable language known as machine code, again it is also in the form of binary.
Don't forget, computer can understand only binary language
4. Portable.
Java program can be easily moved from one computer to another, this is possible because of two major reasons.
Firstly, because of Java compiler, it generates byte code which can be implemented (put) on any machine.
Secondly, because of primitive data types[int, char, float, etc...], and their size does not depend on the machine we use.
5. Platform independent.
A platform is environment in which the program runs the program, there are 2 types of platform hardware-based and software-based.
Java code can run in multiple platform like, Windows, Linux, Mac/Os etc... Again this is because of Java compiler which generates byte code that can be implemented (put) on any machine.
6. Object-Oriented.
Java is a pure Object Oriented Programming (Oops) languages. This is a method that simplifies software development and maintenance by providing a set of rules. Every things in java is an object.
7. Robust.
Java handles problems in efficiently, two major problems are memory management system and mishandle runtime error.
- Memory Management System: In some complex program, unnecessary instruction consume more memory without over knowledge, to over come this garbage collection is done. It automatically de-allocates (remove form memory location) the object which are unnecessary or no longer needed.
- Mishandled runtime error: This is the error occurred at the program running time, this is maybe because of Java interpreter (JVM) runs out of memory or stack overflow etc... this can be solved by exception handling procedures.
These are some of the important features of Java.
Comments
Post a Comment