Aggregation in JavaIf a class have an entity reference, it is known as Aggregation. Aggregation represents HAS-A relationship. Aggregation in Java is a mechanism of using an object of one class as a member variable of another class. It is a way to achieve a "has-a" rel...2 min read·akashpawal.hashnode.devMar 3, 2023
Abstract class in JavaAn abstract class in Java is a special kind of class that cannot be instantiated on its own. It is used as a base class or blueprint for creating concrete subclasses. Abstract classes are used to provide a common interface and implementation for a se...3 min read·akashpawal.hashnode.devFeb 11, 2023
Final keyword in javaFinal is a Non-acess modifier.The final keyword in Java can be used for different purposes. Most commonly, it is used to create immutable objects. This means that once an object is created, it cannot be modified. It can also be used to prevent inheri...2 min read·akashpawal.hashnode.devFeb 10, 2023
Method OverridingIf subclass (child class) has the same method as declared in the parent class, it is known as method overriding. Usage of Method Overriding Method overriding is used to provide the specific implementation of a method which is already provided by its ...1 min read·akashpawal.hashnode.devFeb 9, 2023
This Keyword in Java.This keyword is a reference variable that refer to a current Object. This can be used to refer current class instance variable. If we don't use this keyword. class Staff{ int idno; String name; long salary; Staff(int idno,String name,long salary){ Id...2 min read·akashpawal.hashnode.devFeb 8, 2023