CACS354 Advance Java Programming

Advance Java Programming TU Board 2023 question paper

10 questionsSit this paper (timed)

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)

  1. 2.

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

    5
  2. 3.

    What is KeyEvent? Explain with a proper example.

    5
  3. 4.

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

    5
  4. 5.

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

    5
  5. 6.

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

    5
  6. 7.

    Explain RMI architecture in Java in detail.

    5
  7. 8.

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

    5

Group C

Attempt any TWO questions(2 × 10 = 20)

  1. 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
  2. 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.

    10
  3. 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.

    10

— The End —