ADVANCED JAVA PROGRAMMING - 5 & 8 MARKS QUESTIONS
UNIT III – JDBC (Java Database Connectivity)
5 MARKS QUESTIONS
1. Explain JDBC architecture with diagram.
2. Write the steps to establish a JDBC connection.
3. Explain different types of JDBC drivers.
4. Discuss PreparedStatement and its advantages.
5. Explain SQLException handling with an example.
8 MARKS QUESTIONS
1. Write and explain a Java program to connect to a database and retrieve records.
2. Explain JDBC architecture and driver types in detail.
3. Describe JDBC classes and interfaces with suitable examples.
4. Explain the role of Connection, Statement, and ResultSet interfaces in database
programming.
UNIT IV – Network Programming
5 MARKS QUESTIONS
1. Explain the difference between TCP and UDP.
2. Write short notes on DatagramSocket and DatagramPacket.
3. Explain the steps to create a TCP client and server.
4. Describe the role of URL and URLConnection classes.
5. Explain RMI architecture briefly.
8 MARKS QUESTIONS
1. Write a Java program for client-server communication using TCP sockets.
2. Explain the working of RMI with advantages and architecture.
3. Describe socket programming in Java with an example.
4. Explain network programming components and their uses in Java.
UNIT V – AWT (Abstract Window Toolkit)
5 MARKS QUESTIONS
1. Explain AWT class hierarchy.
2. Describe the various layout managers in AWT.
3. Write short notes on AWT components (Button, Label, TextField).
4. Explain the event delegation model in AWT.
5. Discuss the role of event listeners in GUI applications.
8 MARKS QUESTIONS
1. Write a Java program to create a login form using AWT controls.
2. Explain event handling in AWT with examples.
3. Describe the layout managers in AWT with diagrams.
4. Design and explain a simple GUI application using AWT components.