Introduction of Object Oriented Programming (JAVA)

In this world, there are many kinds of languages spoken. They use languages to communicate with each other. And the language used by people is also known as 'natural language'. Similarly computers also use different languages and it is called programming language. Programming Language is a machine-readable language. It is specially designed to be executed by the computer system and it is also known as high level programming language. Java programming language is created by Gosling form the Sun Microsystems in 1991. It's main target of java programming language is to write once and then read multiple times in multiple operating system. In 1995, the first version of java was introduced (Java 1.0). Sun microsystem was acquired by Oracle in 2010. Sun started java available under GNU in 2006 General Public License (GPL). After that, Oracle continued this project name openJDK. Java's main features are platform independent, object oriented, JVM, JRE etc. Java Runtime Environment  allows the users to write programming code in other languages. Java platform is associated with JVM and java core libraries. Java has its own core library. Some of the features of Java programming language are described below:-

1) Platform independent: Java programs use the Java virtual machine which do not access the operating system directly. This makes Java programs highly portable. A Java program  can run on any operating system. e.g., Windows or Linux.

2) Object-orientated programming language: Except the primitive data types, all elements in Java are objects.

3) Strongly-typed programming language: Java is robust programming language. The types of the used variables must be pre-defined and conversion to other objects is relatively strict, e.g., must be done in most cases by the programmer.

4) Interpreted and compiled language: Source code of java is transformed in bytecode format which does not depend on the target platform. These bytecode instructions will be interpreted by the Java Virtual machine (JVM). The JVM contains a so called Hotspot-Compiler which translates performance critical bytecode instructions into native code instructions.

5) Automatic memory management: Java manages the memory allocation and de-allocation for creating new objects. The program does not have direct access to the memory. The so-called garbage collector automatically deletes objects to which no active pointer exists.

Comments

Popular posts from this blog

Logical operator in JAVA

Class and Object in Java

Loop Structure