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

Explain serialization and deserialization in java?

541


what is a working thread? : Java thread

536


What is the difference between stringbuffer and stringbuilder class?

556


What is high level language in computer?

524


What is the disadvantage of synchronization?

547






Why collection is called framework in java?

527


Is java ee a framework?

509


Explain working of call by reference function invoking.

575


What is a jit compiler?

625


Write the algorithm to check the number non-leaf nodes in a tree.

576


What are static variables and functions?

608


What is hashtable and explain features of hashtable?

550


Write an algorithm for quick sort?

604


Explain wait(), notify() and notifyall() methods of object class ?

580


Is space a character in java?

500