Static keyword in java can be applied on variables, methods, blocks, import and inner classes. Learn the effect of using static keyword in detail.
Java constructors are special methods (without return type) which allow you to fully initialize the object state before it can be used by other classes inside application. Constructors in java are invoked using new keyword.
Inheritance in java (IS-A relationship) is referred to the ability where child objects inherit or acquire all the properties and behaviors from parent object. In object oriented programming, inheritance is used to promote the code re-usability.
Association, Aggregation and Composition are three relationships which classes can have in object oriented programming. Let’s understand their difference.
The object-oriented paradigm supports four major principles: abstraction, encapsulation, inheritance, and polymorphism. They are also known as four pillars of the object-oriented paradigm.
As we have long learned the fact that multiple inheritance is not supported in java, well that was only till java 7. In Java 8, we can realize the concept of multiple inheritance through use of default methods. Let’s see how? Table of Contents What are default methods? How multiple inheritance is achieved via default […]
Java provides four access modifiers to set access levels for classes, variables, methods and constructors. Access level modifiers determine whether other classes can use a particular field or invoke a particular method.
Learn the difference between method overloading and method overriding in java, which mainly involve method name, signature, parameters list and return type.
From this post onwards, I will spend few days in sharing some little known (if not unknown) features of java language, which we either don’t knew before or didn’t care to think differently. I will really appreciate if all you guys participate in discussion with your thoughts. And for being updated about next discussion point […]
In java, polymorphism is the ability by which, we can create functions or reference variables which behaves differently in different programmatic context.
In this tutorial, I will explain the encapsulation in java and its relation with abstraction. Also learn about information hiding and implementation hiding.
Learn about java abstract classes vs interfaces in details. Also learn about when to use interface and when to use abstract class in solving design issues.
In simple words, abstraction captures only those details about an object that are relevant to the current perspective. Learn more about abstraction in java.