Interface in Java

An interface is a rule repository or coding contract. As in class, Interface also has methods and variables, but the interface does not have a constructor. All the methods in the interface are abstract by default. Basically, in the interface, we write… Read More »

Constructor in Java

A constructor is one of the members of a class, which is used is to initialize the instance variables of class at the time of Object Creation. Important Points About Constructor in Java The constructor name must be the same as… Read More »

Encapsulation in Java

It is a process of wrapping up the data members along with related data handlers method is called Encapsulation. Wrapping up the data members and data handlers method means we are grouping both as a single unit. In Java, we group… Read More »

Abstraction in Java

Abstraction is the process of hiding the internal implementation details from the consumer by exposing necessary functionality. Now let’s try to understand with Real World Examples. Real World Example Consider an ATM Machine, there are so many logics that have been… Read More »

Polymorphism In Java

The word Polymorphism is the combination of two individual words that is Poly and Morphism. Poly means Many, and Morphism signify Forms. Generally speaking, if anything which takes multiple forms is known as Polymorphism. It is one of the pillars of… Read More »

Inheritance in Java

Do you want to learn about Inheritance in a fun way ??? Then don’t worry I’m going to explain it in a very simple way, I will give the Real-World Examples so that you will able relate and understand properly. Even… Read More »

Object in Java

Anything which is physically present is considered to be an Object. In other words , the object is the Real world physical entity. Before moving forward , Let me ask you a very simple question, Where are you reading this article… Read More »

Class in Java

Class is a blueprint or master-copy using which we can create an Object. It’s not any physical entity. Before going into a detailed explanation let me tell you a small story. Long years back there was a man, who lived around… Read More »

Method Overloading in Java

If class having more than one method with same name but there is change in signature then it is called Method Overloading. Change in Signature refers to any of the following bullet points. Change in numbers of parameters method accept when… Read More »