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
How do you reverse sort in java?
How to read and write image from a file ?
What is the difference between access specifiers and access modifiers in java?
Can an object be null?
What is the use of volatile in java?
What is the difference between superclass and subclass?
What is nullpointerexception?
What is set and get methods in java?
In the below example, what will be the output?
Is jdk required on each machine to run a java program?
What all methods are used to prevent thread execution ?
What is import java util arraylist?
What do you mean by of string::valueof expression in java 8?
What is the difference between abstract classes and interfaces?
What is a string what operation can be performed out with the help of a string?