Overview of Java
Java is a high-level programming language originally developed by Sun Microsystems under the
guidance of James Gosling and there team, and released in 1995.
OOPs Concepts in Java
Java is an Object-Oriented Language. As a language that has the Object-Oriented feature, Java
supports the following fundamental concepts –
1) Object: Any entity that has state and behavior is known as an object. For example: chair, pen,
table, keyboard, bike etc. It can be physical and logical.
2) Class: A class is a group of objects which have common properties. It is a template or
blueprint from which objects are created. It is a logical entity. It can't be physical.
3) Encapsulation: Binding (or wrapping) code and data together into a single unit is known as
encapsulation. A java class is the example of encapsulation.
4) Abstraction: Hiding internal details and showing functionality is known as abstraction.
5) Inheritance: The process by which one class acquires the properties and functionalities of
another class is called inheritance. It provides code reusability.
6) Polymorphism: When one task is performed by different ways i.e. known as polymorphism.
In java, we use method overloading and method overriding to achieve polymorphism.
Features of Java
1) Simple: The Java language is easy to learn and its coding style is easy to read and write.
2) Object Oriented: It has all OOP features such as abstraction, encapsulation, inheritance and
3) Portable: Java programs can execute in any environment (Linux, Window, Mac etc.)
4) Platform Independent: Java is guaranteed to be Write Once, Run Anywhere language.
5) Secure: With Java's secure feature it enables to develop virus-free, tamper-free systems.
6) Robust: Its capability to handle Run-time Error, automatic garbage collection, the lack of
pointer concept, Exception Handling etc. makes java robust.
7) Architectural Neutral: To enable a Java application to execute anywhere on the network, the
compiler generates an architecture-neutral object file format.