About Java




Introduction

Java is a programming language, which is based on the object. It was invented by James Gosling in 1991, at Sun Micro systems. Initially it was called by the name "Oak". Later in 1995, it was renamed as Java. Java stands Just Another Virtual Approach.

Java- Platform independent language

Java is known as platform independent language. This is the code which is developed using Java can run in any environment. It does not depend on any hardware or software of the system. Since it contains this feature, this is used in networks to share data i.e. distributed network.

Creation of byte code

Java gives a way to solve both security and portability problems. This is achieved by creation of byte codes. Java code is compiled and interpreted. Once a Java file is compiled, it will be converted to byte code. This byte code can run in any environment. This is not user readable. Therefore, security and portability is achieved.

The byte code file will have.class extension. This byte code will be interpreted by a run-time system known as Java Virtual Machine. As a result, machine understandable code, says 1 0 will be generated and it will be processed and the corresponding output will be displayed.
The three OOPS principles

Encapsulation

Binding the data and object is known as encapsulation. Therefore, the data cannot be accessed by the outside world. Thus it enhances the security.
Inheritance

Acquiring the properties of the parent class by the child class is known as inheritance. This feature enhances the re usability of code. The only exception in Java is, it does not support multiple inheritances. In order to overcome this problem, the concept of interface is used.

Polymorphism

In Greek, polymorphism means, "many forms". Acting differently in different situations is known as polymorphism. That is a generic template will be designed, for a group of related activities, which acts differently.

Multi threading

Java supports multi threading concept. In multithreading, there may be one or many parts, that can run concurrently. Each such part is known as thread. Each thread has separate path of execution. This feature maximizes the use of CPU.

Conclusion

Java is a simple, efficient, robust and object-oriented programming language, which is most commonly used in today's technology. Java is used in mobiles which has brought a big revolution in the technological development. The Java software is a freeware and it can be used by any person, who knows the language.

Article Source: http://EzineArticles.com/6361740