Jyothy Charitable Trust®
Jyothy Institute of Technology
Tataguni, off Kanakapura road, Bengaluru-560082
Approved by The All India Council for Technical Education (AICTE) - New Delhi;
Affiliated to VisvesvarayaTechnological University(VTU), Belagavi;
Department of Computer Science & Engineering
Accredited by National Board of Accreditation (NBA) -New Delhi.
AY:2024-25
QUESTION BANK
Course: Advanced Java Course Code: BCS613D Course Type: Elective
Semester: 6th Semester CSE Course Coordinator: Mr. Navile Nageshwara Naveen,
Assistant Professor,
Department of CSE,
JIT-Bangalore.
Module – 01: The Collections and Framework
What is collection framework? Explain the methods defined by the Collection interface. (or) What
1.
is collections? Explain the interface and methods available under collection interface.
2. Demonstrate ArrayList class collection with an example.
Explain any four legacy collection of framework. (or) Explain any four legacy classes of Java’s
3. Collection Framework with suitable program. (or) What is Legacy Classes? Explain the different
Legacy Classes with a Java Program.
4. Explain the following map classes: (i) HashMap, (ii) TreeMap
Explain ArrayList Class and demonstrate the following methods with code snippet.
5.
i. binarySearch, ii. copy, iii. equals, iv. fill
6. Explain Queue interface. List different methods defined in Queue.
What is collection framework? Explain the methods defined by the following interfaces:
a. Collection
7. b. List
c. Sorted Set
d. Queue
8. Explain how collections can be accessed using an iterator with example.
9. Explain HashMap with example.
Explain the following collection classes by constructing a Java program.
a. LinkedList
10. b. ArrayList
c. TreeSet
b. HashSet
11. What are comparators? Write a comparator program to sort accounts by last name.
1
Jyothy Charitable Trust®
Jyothy Institute of Technology
Tataguni, off Kanakapura road, Bengaluru-560082
Approved by The All India Council for Technical Education (AICTE) - New Delhi;
Affiliated to VisvesvarayaTechnological University(VTU), Belagavi;
Department of Computer Science & Engineering
Accredited by National Board of Accreditation (NBA) -New Delhi.
Module – 02: Strings
1. What is Strings in Java?
2. Write a Java Program that illustrate six constructors of the String class.
3. List and explain the various string comparison methods.
4. Write a Java Program to remove duplicate characters from a string and display the string.
5. Explain the StringBuffer Class.
6. List and Explain methods of StringBuffer Class.
Module – 04: JDBC Connections
1. Explain JDBC architecture and its driver types.
2. Explain various steps of JDBC process with code snippets.
3. With a help of code snippet explain Statement object.
4. With a help of code snippet explain PreparedStatement object.
5. With a help of code snippet explain CallableStatement object.
6. With a help of code snippet explain Transaction Processing in JDBC.
7. Explain the scrollable ResultSet with example.
8. Explain JDBC architecture and the three kinds of exceptions occurred in JDBC.