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
These static constructors are correct ? class A { statc intA() { } static A(int x,int y) { } static A(int x) { } }
What is nullpointerexception?
Who developed java?
Why can't you declare a class as protected?
What is the use of using enum to declare a constant?
What is number data type in java?
What is difference between hashset and hashmap in java?
What is the difference amongst jvm spec, jvm implementation, jvm runtime ?
What is the difference between sop and work instruction?
Explain about instanceof operator in java?
Is string a wrapper class?
What are triggers in DB? Explain their types. How do they work?
What is the requirement of thread in java?
Explain about static nested classes in java?
What is data structure in java?