What is the function of the add() and addAll() methods?

What is the function of the add() and addAll() methods?



Answer: add() is a boolean that adds a single method to a collection that implements the Collection interface, returning true if successful. The addAll() method does the same thing, only returning true if at least one method is added successfully.


Learn More :

Data Structures

Learn More Multiple Choice Question :