Advanced Java Programming - Unit Wise Questions

Unit 1: GUI Programming
3 Questions

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]

5 marks | Asked in 2020 |

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

5 marks | Asked in 2020 |

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 marks | Asked in 2020 |

Unit 2: Database Programming
2 Questions

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

5 marks | Asked in 2020 |

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

5 marks | Asked in 2020 |

Unit 3: JavaBeans
1 Questions

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

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

10 marks | Asked in 2020 |

Unit 4: Servlets and JSP
2 Questions

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

5 marks | Asked in 2020 |

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

5 marks | Asked in 2020 |

Unit 5: RMI
2 Questions

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

    a) Java web frameworks

    b) CORBA

    c) Bean bound property

5 marks | Asked in 2020 |

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]                                                           

10 marks | Asked in 2020 |