What is the function of the boolean equals(Object o) method of the Collection interface?

What is the function of the boolean equals(Object o) method of the Collection interface?



Answer: If o is not a collection, then it will return false. If o is a collection, then it will compare the contents of o and the collection. In the case of lists, it will compare order as well


Learn More :

Data Structures

Learn More Multiple Choice Question :