Module 1 – Question Bank
(Advanced JAVA – BCS613D)
1. What is collection frame work ? Explain methods defined by the collection interface.
(What is collections ? Explain interface and methods available under collection
interface )
2. Define legacy class – vector with syntax declaration and demonstrate various vector
operations .
(Explain any four legacy collection with an example )
(What is Leagacy classes ? Explain the different Legacy classes with a JAVA
program)
3. Explain the constructors of TreeSet with example. (or Explain the constructors of
TreeSet class and write a java program to create TreeSet collection and access it via
Iterator.)
4. Demonstrate ArrayList class collection with an example.
5. Explain the following map classes :
i. HashMap
ii. TreeMap
6. Explain ArrayList class and explain the following methods:
i. BinarySearch
ii. Copy
iii. Equals
iv. Fill
7. Explain Queue interface. List different methods defined in Queue.
8. Explain the methods defined by List Iterator interface .
9. What is collection framework ? Explain the methods defined by the following
interfaces :
i. Collection
ii. List
iii. Sorted Set
iv. Queue
10. Explain how collections can be accessed using an iterator with example.
11. Explain HashMap with example.
12. Explain the following collection classes by constructing a JAVA program :
i. Linked List
ii. Array List
iii. Tree Set
iv. Hash Set
13. What are comparators ? Write a comparator program to sort account by last name .
14. Write the methods defined by Dequeue interface .
15. Explain Iterator and List Iterator with an example program.
16. Explain SplIterator with an example.
17. Write a program to demonstrate collection Algorithm
i. [Link]()
ii. [Link]()
iii. [Link]()
iv. [Link]()
v. [Link]()
18. With a program demonstrate the following methods
i. [Link]()
ii. [Link]()
iii. [Link]()