Official TU board examination questions for Advanced Java Programming from 2023.

Tribhuvan University
Faculty of Humanities & Social Sciences
OFFICE OF THE DEAN
2025
Bachelor in Computer Applications

Paper detail Value
Course Advanced Java Programming
Code No. CACS354
Semester VIth
Full marks 60
Pass marks 24
Time 3 hours

Candidates are required to answer the questions in their own words as far as possible.

Group B

2. What is the role of Event Listener in event handling? List different event listeners provided by Java.

3. What is KeyEvent? Explain with a proper example.

4. What is the use of RowSet interface? Explain connected and disconnected rowsets.

5. What are bounded and constrained properties in JavaBeans? Explain the advantages of Java beans.

6. What are the key methods provided in HttpSession interface for handling sessions? Explain.

7. Explain RMI architecture in Java in detail.

8. Write short notes on (any two): a) Adapter classes b) CORBA c) Life cycle of a servlet

Group C

9. How a frame can be created in Java? Explain. Write a program to create a GUI application in Java that identifies the smaller and greater number between two input numbers taken through two text fields and displays the result in a label. If the user presses the mouse it should display the smaller number and if the user releases the mouse it should display the greater number.

10. Explain JDBC architecture. Write a program to insert three records into a table Item which is in the database Shop and contains the columns ItemID, Name, UnitPrice, Units and ExpiryDate.

11. Differentiate between servlet and JSP. Create a servlet that computes and displays the factorial of an input number entered from a page when the button from that page is pressed by the user.