CACS354 Advance Java Programming

Advance Java Programming TU Board 2021 question paper

10 questionsSit this paper (timed)

Tribhuvan University

Bachelor of Computer Application

Semester 6 · TU Board 2021

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.

    Why do we need a top-level container like JFrame to write Java programs with GUI? How can we display two-dimensional objects in Java?

    5
  2. 3.

    Explain JTextField and JTextArea components of the Java Swing library.

    5
  3. 4.

    How do you execute SQL statements using JDBC? Explain with an example.

    5
  4. 5.

    Compare result set with row set. Explain a prepared statement with an example.

    5
  5. 6.

    How do you set and get Cookie in Servlet? Explain using a suitable Java program.

    5
  6. 7.

    Explain different scripting elements of JSP with examples.

    5
  7. 8.

    Write short notes on (Any Two): a) Java web frameworks b) CORBA c) Bean bound property

    5

Group C

Attempt any TWO questions(2 × 10 = 20)

  1. 9.

    Write a GUI application to find the sum and difference of two integer numbers. Use two text fields for input and a third text field for output. Your program should display the sum if the user presses the mouse and the difference if the user releases the mouse.

    10
  2. 10.

    What is a bean design pattern? Explain simple, Boolean, and indexed property design patterns with suitable examples in detail.

    10
  3. 11.

    Define RMI. What is stub and parameter marshalling? Write a client/server application using RMI to find the product of two numbers.

    10

— The End —