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

What is a flag variable?

744


What does indexof mean?

715


What is main difference between variable and constant?

778


There are two classes named classa and classb. Both classes are in the same package. Can a private member of classa can be accessed by an object of classb?

1242


What is the default value of an object reference declared as an instance variable?

774


What is void in java?

816


Explain some best practices you would apply while using collection in java?

808


What is contract between hashcode and equal method?

793


Are arrays primitive data types?

851


Can we use return in constructor?

682


What do you mean by checked exceptions?

750


How does system arraycopy work in java?

838


Define a package.

771


which class is the wait() method defined in? : Java thread

719


Explain when classnotfoundexception will be raised ?

795