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
What is a nested list?
Why hashset is used in java?
Why is boolean important?
What is return code?
What is the buffer limit?
What are disadvantages of java?
What is meant by 'bit masking' in java?
Is it necessary for the port addresses to be unique? Explain with reason.
Is array dynamic in java?
Which command from the jdk compiles a java program?
Difference between error and exception
What package is math in java?
What are the library functions in java?
Can I uninstall java?
Can abstract class have private constructor?