what is difference between colection and collections?

Answer Posted / mike

collection(lowercase c)represents any of the data
structures in which object are stored and iterated over.

Collection(Uppercase C)represents the interface which is
extended by three other interfaces(Set,List and Queue,Map
doesnt extend Collection interface).Guys,its extended not
implemented(hope you all know the difference between the
two,interface can extend interface,remember?)

Collections(upper case C with s at the end)this the
java.util.Collections class that holds a pile of static
methods for use with collections.

Is This Answer Correct ?    7 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between a choice and a list?

595


What are the advantages and disadvantages of reference counting in garbage collection?

564


How do you add an arraylist to an array in java?

501


What is the final method?

595


Can we overload run() method in java?

587






what is recursion in java

590


What is public/private protected in java?

536


What is jvm? Why is java called the platform independent programming language?

539


What is lexicographically smallest string?

591


What do you mean by platform independence?

579


What is the size of boolean variable?

566


How to display arraylist values in java?

479


What is the difference between yielding and sleeping in java programming?

578


How does thread synchronization occurs inside a monitor?

542


How many types of java are there?

545