Unit 1: GUI Programming
Theoretical Questions
Explain the event handling model in Java in detail.
What is the use of Layout managers in GUI applications? Explain with proper examples.
What is a Window Event? List and explain WindowListener interface methods in detail
with an example.
What is the use of WindowEvent? List different methods of WindowListener interface
with its uses.
How can you display images in GUI using Java? Explain.
What is the role of an Event Listener in event handling? List different event listeners
provided by Java.
What is KeyEvent? Explain with a proper example.
How can a frame be created in Java? Explain.
Why do we use Panels while creating GUI applications in Java?
What are adapter classes? What is the benefit of using adapter classes in Java while
creating events in GUI programs? Explain with an example.
Why do we need a top-level container like JFrame to write Java programs with GUI?
How can we display two-dimensional objects (2D shapes) in Java?
Explain JTextField and JTextArea components of the Java Swing library.
Programming & Practical Tasks
Write a program to create a GUI form that takes data about a customer (cid, name,
address, email, age) and inserts these data into a "Customer" table.
Write a program to create a GUI application that identifies the smaller and greater
number between two input numbers taken through two text fields. If the user presses the
mouse, it should display the smaller; if the user releases, it displays the greater.
Write a GUI application to find the sum and difference of two integer numbers. Use two
text fields for input and a third for output. Display sum on mouse press and difference on
mouse release.
Short Notes
Graphics class
JMenuBar
Adapter classes
2D shapes in Swing
MouseEvent and MouseListener
Unit 2: Database Programming
Theoretical Questions
What is the use of the ResultSet class in JDBC? Explain the types of ResultSet
(forward only, scroll-insensitive, scroll-sensitive).
Explain the difference between Statement and PreparedStatement with examples.
What is the use of the RowSet interface? Explain connected and disconnected rowsets.
Explain the JDBC architecture in detail.
How do you execute SQL statements using JDBC? Explain with an example.
Compare and contrast ResultSet with RowSet.
Programming & Practical Tasks
Write a program to display the records from the table "Students" who have got distinction
and have a major subject "Data Science".
Write a program to insert three records into a table "Item" which contains columns
ItemID, Name, UnitPrice, Units, and ExpiryDate.
Short Notes
Rowset in JDBC
Unit 3: JavaBeans
Theoretical Questions
Define JavaBean. How is persistence achieved in JavaBeans?
Why do we need to create JavaBeans? Explain the steps involved in the creation of a
JavaBean.
What are bounded and constrained properties in JavaBeans?
Explain the advantages of JavaBeans.
What is a JavaBean? Explain different types of properties in JavaBeans.
What is a bean design pattern? Explain simple, Boolean, and indexed property design
patterns with suitable examples in detail.
Short Notes
Bean bound property
Unit 4: Servlets and JSP
Theoretical Questions
How is JSP different from a Servlet? Explain the JSP scriptlet tag with an example.
What are declaration and expression tags in JSP? Explain with an example.
Explain the life cycle of a Java Servlet in detail.
What are the key methods provided in the HttpSession interface for handling sessions?
What are the differences between servlets and standard Java applications?
Explain different methods used for handling cookies in Java.
Explain different scripting elements and directive elements of JSP with examples.
What are HttpServletRequest and HttpServletResponse?
Programming & Practical Tasks
Create a servlet application that takes student's information (roll, name, address, level)
and stores them in the database.
Write a servlet program that takes three numbers from an HTML page and computes the
sum of natural numbers up to the greatest number among them.
Create a JSP page that verifies the username and password entered in an HTML file. If
correct, display a greetings message; otherwise, redirect to a register page.
Create a servlet that computes and displays the factorial of an input number.
Create a JSP page that contains three textboxes to input three numbers and displays the
greatest among them.
How do you set and get a Cookie in a Servlet? Explain using a suitable Java program.
Short Notes
Declaration tag in JSP
Life cycle of a servlet
Session handling/tracking in Servlet
Java web frameworks
Unit 5: RMI (Remote Method Invocation)
Theoretical Questions
What are stub and skeleton? Also, explain the use of the RMI Registry.
Explain the RMI architecture in Java in detail.
What is marshalling and unmarshalling of arguments in RMI?
Differentiate between CORBA and RMI.
Define RMI and explain its core components.
Programming & Practical Tasks
Write an RMI client and server program to find the greater number among two (or three)
numbers.
Write a client-server application in RMI to find the selling price of an item with cost
price Rs. 5000 after a discount of Rs. 50.
Write a client/server application using RMI to find the product of two numbers.
Short Notes
Marshalling and Unmarshaling
CORBA