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
How to make a non daemon thread as daemon?
What are static variables and functions?
Is empty set an element of empty set?
What is a method signature java?
What is array sorting in java?
which one is more efficient int x; 1. if(x==null) 2.if(null==x) state which one either 1 or 2?
How do you compare two objects?
How many types of literals are there in JAVA?
Difference between serialization and deserialization in java?
Differentiate between nested and inner class in java.
which pattern is default in scanner package?
Are arrays passed by reference in java?
What is difference between equals and hashcode method?
what is mutual exclusion? How can you take care of mutual exclusion using java threads? : Java thread
What java is used for?