what is collections in java?

Answer Posted / somasundar m

Collection is a frame work which is there in java.lang
package, which is used to store multiple type objects.
Collections has certain interfaces like Collection, Set,
List, Map, sorterdSet, sortedMap and certain classes like
HashSet, TreeSet,ArrayList, Linked List, Vectors,
Hashmap,Hashtable, Properties, etc. Based on the
requirements the appropriate collections should be used.

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can we declare array without size in java?

773


What is the right data type to represent a price in java?

769


How do you use wildcards?

769


Describe what happens when an object is created in java ?

792


What is difference between next () and nextline () in java?

781


How does split work in java?

772


Difference between throw and throws?

885


What is lexicographically smallest string?

836


How do you do exponents in java?

792


what is the swingutilities.invokelater(runnable) method for? : Java thread

813


What is an image buffer?

743


Is there any limitation of using inheritance?

823


What is instance synchronization?

837


Is array size fixed in java?

757


what is the difference between the methods sleep() and wait()? : Java thread

744