0% found this document useful (0 votes)
4 views1 page

Collection Framework

Uploaded by

BALAMUKESH C
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views1 page

Collection Framework

Uploaded by

BALAMUKESH C
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 1

1) What is the Collection framework in Java?

2) What are the main differences between array and collection?


3) Explain various interfaces used in Collection framework?
4) What is the difference between ArrayList and Vector?
5) What is the difference between ArrayList and LinkedList?
6) What is the difference between Iterator and ListIterator?
7) What is the difference between Iterator and Enumeration?
8) What is the difference between List and Set?
9) What is the difference between HashSet and TreeSet?
10) What is the difference between Set and Map?
11) What is the difference between HashSet and HashMap?
12) What is the difference between HashMap and TreeMap?
13) What is the difference between HashMap and Hashtable?
14) What is the difference between Collection and Collections?
15) What is the difference between Comparable and Comparator?
16) What do you understand by BlockingQueue?
17) What is the advantage of Properties file?
18) What does the hashCode() method?
19) Why we override equals() method?
20) How to synchronize List, Set and Map elements?
21) What is the advantage of the generic collection?
22) What is hash-collision in Hashtable and how it is handled in Java?
23) What is the Dictionary class?
24) What is the default size of load factor in hashing based collection?
25) What do you understand by fail-fast?
26) What is the difference between Array and ArrayList?
27) What is the difference between the length of an Array and size of ArrayList?
28) How to convert ArrayList to Array and Array to ArrayList?
29) How to make Java ArrayList Read-Only?
30) How to remove duplicates from ArrayList?
31) How to reverse ArrayList?
32) How to sort ArrayList in descending order?
33) How to synchronize ArrayList?
34) When to use ArrayList and LinkedList?

You might also like