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
When will you define a method as static in Java?
What is null data type?
What if constructor is protected in java?
Why isn’t there operator overloading?
What is the association?
Can we have multiple classes in single file ?
What is a string token?
Why java is considered dynamic?
Can each java object keep track of all the threads that want to exclusively access it?
What is callable java?
What is Java Shutdown Hook?
What is the difference between and ?
What is an class?
What is variable and constant explain with example?
How is garbage collection controlled?