ADVANCED JAVA
Module – 1: Collections Framework
1) Explain the Collection Interface and its key methods.
2) Write a Java program to demonstrate adding, removing, sorting elements in an ArrayList.
3) Explain how collections can be accessed using an iterator with an example?
4) Describe the Map interface in Java. Explain HashMap with an example.
5) Write a Java program to store and retrieve user-defined objects in a TreeSet using a
comparator.
6) Explain the differences between legacy classes and new collection classes.
7) Discuss the use of Comparator with an example of sorting custom objects.
8) What is a Collection Framework? Explain the methods defined by Collections
Framework.
9) Explain the methods of NavigableSet class with a sample program.
Module – 2: String Handling
10) Explain the various constructors of the String class in Java.
11) Develop a java program to illustrate the use of different types of character extraction, string
comparison, string search and string modification methods..
12) Develop a java program to illustrate the use of different types of StringBuffer methods
13) Explain the use of valueOf() method with examples.
14) Discuss how case conversion and string comparison work in Java with code.
MODULE - 3: Swings
15) What are swings in Java? Discuss the MVC architecture in the context of Swing applications.
16) Write a Java program using Swing to create a following GUI with JLabel, JTextField, and
JButton.
17) Explain the event handling mechanism in Swing.
18) Write a program using JCheckBox and JRadioButton to capture user preferences.
19) Explain the purpose of ImageIcon and how it can be used in a JLabel.
Module - 4: Servlets and JSP
20) Explain the life cycle of a servlet.
21) Write a simple servlet that accepts a username and displays a personalized greeting.
22) What is session tracking? Explain any two mechanisms used for session tracking in servlets.
23) Explain how to handle HTTP GET and POST requests in servlets, along with appropriate code
examples.
24) Explain different types of JSP tags with examples. Highlight the purpose of each tag and how
it is used in a JSP page.
25) Write a JSP page to accept student details and display them.
26) Differentiate between cookies and session objects in JSP.
27) Explain JSP implicit objects with suitable examples.
Module - 5: JDBC
28) Explain the steps involved in connecting a Java application to a database using JDBC.
29) Write a Java program to insert and retrieve student data from a database.
30) What are the different types of JDBC drivers? Explain.
31) Describe the role of ResultSet and Statement objects in JDBC.
32) What is transaction processing in JDBC? Explain with an example.
33) Write a Java program to update and delete records in a database using JDBC.