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?
Explain JTextField and JTextArea components of the Java Swing library.
How do you execute SQL statements using JDBC? Explain with an example.
Compare result set with row set. Explain a prepared statement with an example.
How do you set and get Cookie in Servlet? Explain using a suitable Java program.
Explain different scripting elements of JSP with examples.
Write short notes on (Any Two):
a) Java web frameworks
b) CORBA
c) Bean bound property
Attempt any TWO questions
[2x10=20]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.
What is a bean design pattern? Explain simple, Boolean, and indexed property design patterns with suitable examples in detail.
Define RMI. What is stub and parameter marshalling? Write a client/server application using RMI to find the product of two numbers.