CSC409 Advanced Java Programming

Advanced Java Programming TU Board 2078 question paper

12 questionsSit this paper (timed)

Tribhuvan University

Bachelor of Science in Computer Science and Information Technology

Semester 7 · TU Board 2078

Course Title: Advanced Java Programming (CSC409)

Full Marks: 60Pass Marks: 24Time: 3 hours

Candidates are required to give their answers in their own words as far as practicable. The figures in the margin indicate full marks.

Group A

Attempt any two questions.(2 × 10 = 20)

  1. 1.

    Compare AWT with Swing. Write a GUI program using components to find sum and difference of two numbers. Use two text fields for giving input and a label for output. The program should display sum if user presses mouse and difference if user release mouse.

    10
  2. 2.

    Explain life-cycle of servlet in detail. Create a simple servlet that reads and displays data from HTML form. Assume form with two fields username and password.

    10
  3. 3.

    Explain RMI architecture layers in detail. Write a Java programs using RMI to find product of two numbers.

    10

Group B

Attempt any eight questions.(8 × 5 = 40)

  1. 4.

    What is package? How can you create your own package in Java? Explain with example.

    5
  2. 5.

    Why do we need swing components ? Explain the uses of check boxes and radio buttons in GUI programming.

    5
  3. 6.

    How can we use listener interface to handle events? Compare listener interface with adapter class.

    5
  4. 7.

    What is row set? Explain cached row set in detail.

    5
  5. 8.

    What is Java Mail API ? How can you use this API to send email messages?

    5
  6. 9.

    Compare JavaFX with swing. Explain HBox and BBox layouts of JavaFX.

    5
  7. 10.

    What is servlet? Write a simple JSP file to display "Tribhuwan University" five times.

    5
  8. 11.

    Why CORBA is important? Compare CORBA with RMI.

    5
  9. 12.

    Write short notes on:

    • a) JDBC drivers
    • b) Java server pages
    5

— The End —