Wednesday, 29 July 2020

Introduction to Java

Java is a programming language developed by James Gosling and his team at Sun Microsystems (Sun) in 1991. Before Java, its name was Oak. Since Oak was already a registered company, so James Gosling and his team changed the Oak name to Java.Sun Microsystems was acquired by the Oracle Corporation in 2010.Now oracle is the steermanship for Java.

The target of Java is to write a program once and then run this program on multiple operating systems(like windows, Linux,Mac etc.)
Over time new enhanced versions of Java have been released. The current version of Java is Java 10, which was released on 20 March 2018.

The Java language was designed with the following properties:
  1. Simple
  2. Platform independent:
  3. Object-orientated programming language:
  4. Portable
  5. Robust
  6. Secured
  7. Multi threading
Simple : 

Java Language is easy to understand and its syntax is very simple.Java has removed the many complicated and rarely used features like pointers, operator overloading etc.
There is no need to remove unreferenced objects because there is an Automatic Garbage Collection in Java.

Platform independent:

Object-orientated programming language :

Java is an object-oriented programming language because all elements in Java are object except the primitive data type.

4 main concepts of Object Oriented programming are:
  1. Abstraction
  2. Encapsulation
  3. Inheritance
  4. Polymorphism

Portable : Java is portable because it is written on one machine and the pendent byte code can be carried to any other machine. It doesn't require any implementation.

Robust :  Java is robust because Java programming language uses concept like Memory Management, Garbage Collection, Exception Handling.

Secured : In Java,  we don't have pointers that avoids the security.\

Multi-threading : Java supports multi-threading. Multi-threading is a Java feature that allows to programmer to write a programs that deal with two or more task run at a time. It doesn't occupy memory for each thread. It shares a common memory area.




No comments:

Post a Comment

No of Occurrence in Array

package com.tutorial4u; import java.util.HashMap; /************************************************************  No of Occurrence in Array...