what is difference between colection and collections?
Answer Posted / zaheer ahmed
"You can so easily mistake "Collections" for "Collection"—be careful.
Keep in mind that Collections is a class, with static utility methods, while Collection
is an interface with declarations of the methods common to most collections
including add(), remove(), contains(), size(), and iterator()"
Reference:
Mc Graw Hill - SCJP Sun Certified Programmer for Java 6 Exam 310-065 (2008)Page 559
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
Write code to implement bubble sort in java?
What is default switch case? Give example.
How do you get the length of a string in java?
Is string passed by reference in java?
What is data type example?
What is double in java?
Where local and global variables are stored?
List two java ide’s?
Give us the name of the list layoutmanagers in java?
What are the important features of Java 9 release?
What is a nested structure?
What interface is extended by awt event listeners?
What is the purpose of nested class in java?
How do you know if a value is nan?
Differentiate between vector and array list.