java adva
java adva
Components
🔹 2-Mark Questions
1. Define AWT.
🔹 4-Mark Questions
🔹 6-Mark Questions
1. Design a GUI using AWT that has labels, textfields and a submit button. Write event
handling code.
2. Write a program using Swing that shows a login form and displays success/failure on
button click.
1. Define Socket.
3. What is InetAddress?
7. Define URL.
9. What is TCP/IP?
🔹 4-Mark Questions
🔹 6-Mark Questions
3. Explain all steps and classes used for network communication using Java.
1. What is JDBC?
3. What is ODBC?
6. Define PreparedStatement.
🔹 4-Mark Questions
🔹 6-Mark Questions
1. Write a Java program using JDBC to insert, update and delete records from a database.
2. Explain complete JDBC architecture with diagram and describe all involved
classes/interfaces.
4. Write a JDBC program to connect to a MySQL database and display all student records.
🔹 2-Mark Questions
1. Write a snippet to create a simple AWT Button.
🔹 4-Mark Questions
1. Write a Java program using AWT to create a window with 2 labels and 2 text fields.
2. Create a Swing form with JComboBox and JButton. Add sample values to the combo box.
🔹 6-Mark Questions
1. Write a complete Java Swing application with JTextField, JButton, and JLabel. On clicking
the button, display text from the field into the label.
2. Develop a program using AWT to create a registration form with name, gender (radio),
and branch (dropdown) inputs.
3. Write a Java Swing application using JTabbedPane having two tabs: Login and Register.
4. Create an AWT program that handles mouse events and displays coordinates in a label.
🔹 2-Mark Questions
🔹 4-Mark Questions
1. Write a Java program to get and display the IP address of any website.
🔹 6-Mark Questions
2. Create a Java program to fetch contents of a webpage using URL and URLConnection.
3. Write a program to send and receive data using DatagramSocket (UDP communication).
🔹 2-Mark Questions
🔹 4-Mark Questions
3. Demonstrate JDBC connection with MySQL and list all student names.
🔹 6-Mark Questions
1. Write a complete JDBC program to insert, update, delete, and display records from a
student table using PreparedStatement.
2. Create a GUI form in Swing for student registration and store form data into MySQL using
JDBC.
3. Develop a mini project combining Swing and JDBC to perform CRUD operations on a
database table.