Advanced Java Programming 2078
Section A
AI is thinking...
Attempt any two questions: (2*10=20)
AI is thinking...
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.(2+8)
AI is thinking...
2. Explain life-cycle of servlet in detail.Create a simple servlet that reads and displaysdata from HTML form. Assume form with two fields username and password.(5+5)
AI is thinking...
3. Explain RMI architecture layers in detail. Write a Java programs using RMI to find product of two numbers.(4+6)
AI is thinking...
Section B
AI is thinking...
Attempt any eight questions.(8*5 = 40)
AI is thinking...
4. What is package? How can you create your own package in Java? Explain with example.(1+4)
AI is thinking...
5. Why do we need swing components ? Explain the uses of check boxes and radio buttons in GUI programming. (2+3)
AI is thinking...
6. How can we use listener interface to handle events? Compare listener interface with adapter class. (3+2)
AI is thinking...
7. What is row set? Explain cached row set in detail.(1+4)
AI is thinking...
8. What is Java Mail API ? How can you use this API to send email messages? (1+4)
AI is thinking...
9. Compare JavaFX with swing. Explain HBox and BBox layouts of JavaFX.(2+3)
AI is thinking...
10. What is servlet? Write a simple JSP file to display "Tribhuwan University" five times. (2+3)
AI is thinking...
11. Why CORBA is important? Compare CORBA with RMI. (3+2)
AI is thinking...
12. Write short notes on: (2*2.5 = 5)
a. JDBC drivers
b. Java server pages
AI is thinking...