Java – Composition – MCQ
Composition is a stronger form of aggregation, where the contained object cannot exist without the container, implying ownership and a lifecycle dependency.
Selvam College of Technology (Autonomous)
Composition is a stronger form of aggregation, where the contained object cannot exist without the container, implying ownership and a lifecycle dependency.
Aggregation is a special form of association where one object “has-a” relationship with another, but the contained object can exist independently.
In Java, association refers to a general relationship between two objects, where one object uses or interacts with another, without owning it.
In Java, the ListIterator interface is used to iterate over elements in a List collection, such as an ArrayList. Unlike the regular Iterator, a ListIterator
In Java, the ListIterator interface is used to iterate over elements in a List collection, such as an ArrayList. Unlike the regular Iterator, a ListIterator