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


Please Help Members By Posting Answers For Below Questions

When will you define a method as static in Java?

577


What is null data type?

540


What if constructor is protected in java?

563


Why isn’t there operator overloading?

602


What is the association?

557






Can we have multiple classes in single file ?

613


What is a string token?

540


Why java is considered dynamic?

758


Can each java object keep track of all the threads that want to exclusively access it?

544


What is callable java?

560


What is Java Shutdown Hook?

617


What is the difference between and ?

518


What is an class?

595


What is variable and constant explain with example?

535


How is garbage collection controlled?

738