Core JAVA Archive

Abstraction in Java

Abstraction can be defined as the process of hiding the unwanted details and exposing only the essential features of a particular object or concept. The concept of abstraction is used by classes and lists of …

Runtime Polymorphism in Java

Runtime polymorphism or dynamic method dispatch is a process in which a call to an overridden method is resolved at runtime rather than at compile-time. In this process, an overridden method is called through the …

Polymorphism in Java

The dictionary definition of polymorphism refers to a principle in biology in which an organism or species can have many different forms or stages. This principle can also be applied to object-oriented programming and languages …

Java Inheritance

In this section, you will learn about the inheritance with an example and its description. Different kinds of objects often have a certain amount in common with each other. Mountain bikes, road bikes, and tandem …

Constructors in Java

A java constructor has the same name as the name of the class to which it belongs. Constructor’s syntax does not include a return type, since constructors never return a value. Constructors may include parameters …