Professional Documents
Culture Documents
6CollectionFramework 220207 011651question
6CollectionFramework 220207 011651question
12 What do you understand by LinkedList in Java? How many types of LinkedList does Java
support?
16 What is the Stack class in Java and what are the various methods provided by it?
17 What is Set in the Java Collections framework and list its various implementations?
18 What is the HashSet class in Java and how does it store elements?
30 Differentiate between the Singly Linked List and Doubly Linked List.
41 What will happen if we put a key object in a HashMap which is already there?
46 What is a Stack?
54 What is the difference between peek(), poll(), and remove() method of the Queue interface?
56 Explain the importance of hashCode() and equals() method ? Explain the contract also?
58 What is the use of Set Interface? Tell us about the classes implementing this Interface.
60 Why do we need Generics? Can you give an example of how Generics make a program more
flexible?