what is difference between colection and collections?

Answer Posted / nirmal kanna s

The Collections class is a utility class having static methods for doing operations on objects of classes which implement the Collection interface. For example, Collections has methods for finding the max element in a Collection.

The Collection interface defines methods common to structures which hold other objects. List and Set are subinterfaces of Collection, and ArrayList and HashSet are examples of concrete collections.

Collection : The root interface of Java Collections Framework.

Collections : A utility class that is a member of the Java Collections Framework.

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What does this () mean in constructor chaining concept?

568


What is the difference between a break statement and a continue statement?

603


What is the benefit of abstract class?

518


What is ternary operator? Give an example.

603


What is a lambda expression ? What's its use ?

569






What is the purpose of the finally clause of a try-catch-finally statement in java programming?

513


Can inner class be public in java?

557


What is the use of java?

530


What is mysql driver class name?

556


How does class forname work in java?

487


Does printwriter create a file?

546


Can main() method in java can return any data?

653


Explain different states of a thread in java?

592


What is lexicographically smallest string?

607


What type of value does sizeof return?

545