Aggregation is a special form of association. It is a relationship between two classes like association, however its a directional association, which means it is… [Read More]
OOPs concepts – What is Association in java?
Association is an important concept of object-oriented programming. In this article, we will discuss what is an Association in Java with the help of examples and… [Read More]
Encapsulation in Java with example
Encapsulation is one of the fundamental concept of object-oriented programming (OOP) It is widely used for data hiding, it binds the data (variables) and the… [Read More]
Does Java support Multiple inheritance?
When one class extends more than one classes then this is called multiple inheritance. For example: Class C extends class A and B then this… [Read More]
Types of inheritance in Java: Single,Multiple,Multilevel & Hybrid
Below are Various types of inheritance in Java. We will see each one of them one by one with the help of examples and flow… [Read More]
Garbage Collection in Java
When JVM starts up, it creates a heap area which is known as runtime data area. This is where all the objects (instances of class)… [Read More]
OOPs Concepts in Java With Examples
In this guide, you will learn the OOPs Concepts in Java. Object-oriented programming System(OOPs) is a programming concept that is based on “objects”. The primary… [Read More]
Java – Static Class, Block, Methods and Variables
Static keyword can be used with class, variable, method and block. Static members belong to the class instead of a specific instance, this means if… [Read More]
Static and dynamic binding in java
Association of method call to the method body is known as binding. For example: This statement System.out.println(“Hello”); is calling the method println(). The body of… [Read More]
Types of polymorphism in java- Runtime and Compile time polymorphism
In the last tutorial we discussed Polymorphism in Java. In this guide we will see types of polymorphism. There are two types of polymorphism in… [Read More]
Packages in Java explained with Examples
A package as the name suggests is a pack(group) of classes, interfaces and other packages. In java we use packages to organize our classes and… [Read More]
Constructors in Java – A Complete Guide
Constructor is a block of code that initializes the newly created object. A constructor resembles an instance method in java but it’s not a method… [Read More]
OOPs in Java: Encapsulation, Inheritance, Polymorphism, Abstraction
In the last article we discussed OOPs Concepts. If you have not yet checked it out, I would highly recommend you to read it so… [Read More]
Polymorphism in Java with example
Polymorphism is one of the OOPs feature that allows us to perform a single action in different ways. For example, lets say we have a class… [Read More]
Inheritance in Java With Examples
Inheritance is one of the useful feature of OOPs. It allows a class to inherit the properties and methods of another class. A class inheriting… [Read More]