BIBlogs in Shorts.inakashpawal.hashnode.dev·Mar 3, 2023 · 2 min readAggregation 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...00
BIBlogs in Shorts.inakashpawal.hashnode.dev·Feb 11, 2023 · 3 min readAbstract 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...00
BIBlogs in Shorts.inakashpawal.hashnode.dev·Feb 10, 2023 · 2 min readFinal 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...00
BIBlogs in Shorts.inakashpawal.hashnode.dev·Feb 9, 2023 · 1 min readMethod 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 ...00
BIBlogs in Shorts.inakashpawal.hashnode.dev·Feb 8, 2023 · 2 min readThis 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...00