Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
0% found this document useful (0 votes)
2 views

Advanced Java 1st Module Question Bank (1) (1)

The document outlines various aspects of Java's Collections Framework, including its definition, interfaces, and methods for accessing collections using iterators. It covers specific collection types such as ArrayList, HashMap, HashSet, and TreeSet, along with example programs to demonstrate their usage. Additionally, it discusses legacy classes and collection algorithms, emphasizing their significance in Java programming.
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views

Advanced Java 1st Module Question Bank (1) (1)

The document outlines various aspects of Java's Collections Framework, including its definition, interfaces, and methods for accessing collections using iterators. It covers specific collection types such as ArrayList, HashMap, HashSet, and TreeSet, along with example programs to demonstrate their usage. Additionally, it discusses legacy classes and collection algorithms, emphasizing their significance in Java programming.
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

1) What is a collection framework?

Explain the methods defined by


the collection framework.

java.util: package also contains one of Java’s most powerful


subsystems – the Collections Framework

2) Explain the interface defined in the Collections Framework

3) Explain how collections can be accessed using an iterator?

4) Explain ArrayList. Write a java program to demonstrate creating


an ArrayList, adding elements, removing elements, sorting elements
of ArrayList.

5)What is a map interface? Illustrate the HashMap with a program.

6) Explain any 4 legacy classes in Java’s collection framework.

7) Explain the constructors of the HashSet class with an example


program.

8) Explain the constructors of the TreeSet class and write a java


program to create a TreeSet Collection.

9) Explain ArrayList class & LinkedList class with an example.

10) Explain the five collection algorithms & demonstrate their use
with a program.

You might also like