on Leave a Comment

Introduction to Java Programming

Java is an object-oriented programming language. Java was developed by James Gosling at Sun Microsystems in 1991. In 2010, Oracle acquires Sun Microsystems Corporation. Java programs are compiled into classes and can run on any Java Virtual Machine. Principle of Java is WORA (Write Once Run Anywhere), means java is platform independent language. 

Features of Java Language

Object-Oriented Language

Java programs are made up of different objects that can handle both data and methods. 

Java supports all features of object-oriented programming, such as

- Object
- Class
- Inheritance
- Polymorphism
- Abstraction
- Encapsulation

Simple

Java is easy to learn. It does not have some complex c++ concepts like multiple inheritance, operator overloading etc.

Robust

Java has some special concepts that make java application robust. 

(1) Java supports exception handling, that can handles runtime errors. 
(2) Java has also a concept of garbage collector, that can manage memory problems. 

Platform Independent

Principle of java is WORA (Write Once Run Anywhere), means java applications are platform independent. Platform independent means java applications can run on any platform like windows, linux etc. Java programs are compiled into bytecode (classes). These classes can be run on any machine. 

Secure

Java program runs on JVM, where OS does not interact, so it provides virus free environment. Java provides secure environment between java applications and computer.

Multi threading 

A processor can perform a single task at a time, but operating system creates an illusion of executing multiple tasks. Similarly, Java program instructions are always executing one by one, but java supports multi threading, so it creates an illusion of executing multiple instructions simultaneously. 

Portable

Java code can be run on any platforms. Java compiled code can be run on any platforms. 

High Performance

Java is faster programming language. Java uses just-in-time compiler.

0 comments:

Post a Comment