Java Object Oriented Programming

Object-Oriented Programming (OOP) is a programming paradigm that is based on the concept of “objects.” In Java, OOP is a fundamental programming approach, and the language itself is designed to be object-oriented.

Related Tags

Tutorials

Java Instance Initializer Block

Java instance initializers are the code blocks containing the instructions to run every time a new class instance is created in runtime.

Java extends vs. implements

In Java, the extends keyword is used for extending a class or interface; and the implements keyword is used for implementing the interfaces.

Java instanceof Operator

Java instanceof (type comparison operator) is used to test if a specified variable is an instance of the specified class or interface

Java Inheritance

Java Inheritance refers to the ability of a child class to inherit all the non-private properties and methods from the parent class.

Java OOP Concepts with Examples

In this Java OOPs concepts tutorial, we will learn four major object oriented principles– abstraction, encapsulation, inheritance, and polymorphism. They are also known as four pillars of the object oriented programming paradigm.

Multiple Inheritance in Java

Multiple inheritance is a feature of some object-oriented computer programming languages in which an object or class can inherit characteristics and behavior from more than one parent object or parent class.

Java Access Modifiers

Java provides four access modifiers to set access levels for fields, methods and constructors i.e. public, private, protected, and default.

Polymorphism in Java

Polymorphism in Java is the ability to create member functions or fields that behaves differently in different programmatic contexts.

Method Hiding in Java

Declaring similar static methods in parent and child classes is called method hiding. For non-static methods, it is method overriding.

Abstraction in Java

In simple words, java abstraction captures only those details about an object that is relevant to the current perspective. Learn more about abstraction in java.

About Us

HowToDoInJava provides tutorials and how-to guides on Java and related technologies.

It also shares the best practices, algorithms & solutions and frequently asked interview questions.