Tribhuvan University
Bachelor of Computer Application
Semester 6 · TU Board 2023
Course Title: Advance Java Programming (CACS354)
Full Marks: 60Pass Marks: 24Time: 3 hours
Candidates are required to answer the question in their own words as far as possible.
Group B
Attempt any SIX question.(6 × 5 = 30)
- 2.5
What is the role of Event Listener in event handling? List different event listeners provided by Java.
- 3.5
What is KeyEvent? Explain with a proper example.
- 4.5
What is the use of RowSet interface? Explain connected and disconnected rowsets.
- 5.5
What are bounded and constrained properties in JavaBeans? Explain the advantages of Java beans.
- 6.5
What are the key methods provided in HttpSession interface for handling sessions? Explain.
- 7.5
Explain RMI architecture in Java in detail.
- 8.5
Write short notes on (any two): a) Adapter classes b) CORBA c) Life cycle of a servlet
Group C
Attempt any TWO questions(2 × 10 = 20)
- 9.10
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.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.10
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.
— The End —