Inheritance

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 Inheritance

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

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.

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.

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.