Java is a versatile language that supports object-oriented programming and code reusability with building relationships between two classes. There are two types of relationships or associations in Java used to reuse a code and reduce duplicity from one class to another. These relationships are IS-A and HAS-A .
 

#Java 

What is Composition in Java With Examples
2.00 GEEK