Advanced Java Programming 2020 Questionpaper

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 1

Tribhuwan University

Institute of Science and Technology


2020

Bachelor Level / Sixth Semester / Science Full marks: 60


Computer Science and Information Technology(CACS354) Pass marks: 24
((TU BCA) Advanced Java Programming) Time: 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 B

Attempt any SIX questions. [6x5=30]

2. Why do we need top level container like JFrame to write Java programs with GUI? How

can we display two dimensional objects in Java? [2+3]

3. Explain JTextField and JTextArea components of Java swing library. [2.5+2.5]

4. How do you execute SQL statements using JDBC? Explain with example. [5]

5. Compare result set with row set. Explain prepared statement with example. [2+3]

6. How do you set and get Cookie in Servlet? Explain using suitable Java program. [2+3}

7. Explain different scripting elements of JSP with example. [5]

8. Write short notes on (Any Two): [2x2.5=5]

a) Java web frameworks

b) CORBA

c) Bean bound property

Group C

Attempts any TWO questions. [2x10=20]

9. Write a GUI application to find sum and difference of two integer numbers. Use two text

fields for input and third text field for output. Your program should display sum if the users

presses the mouse and difference if the users releases the mouse.

10. What is bean design pattern? Explain simple, Boolean, and indexed property design

patterns with suitable examples in detail. [2+8]

11. Define RMI. What is stub and parameter marshalling? Write a client/server application using

RMI to find product of two numbers. [1+2+7]

You might also like