We have so far covered some of the most important topics in Java. I hope you guys enjoyed them a lot. In the previous article, we discussed ways to initialize instance variables and static variables t...
Instance initializer block in Java is used to set the values of the instance variables. It initializes instance data members during object creations....
Method overloading and Method overriding is used to achieve polymorphism in Java. We should have an understanding of Inheritance and aggregation to know them....
Aggregation in Java builds the HAS-A relationship, like, Inheritance in Java builds IS-A relationship. It is used to reuse the code and make things convenient....
Inheritance in Java is achieved by using the extends keyword. It depicts the parent-child relationship, which is technically called an IS-A relationship....