What is the use of WindowEvent? List different methods of WindowListener interface with its uses.
How can you display images in GUI using Java? Explain.
Why do we need to create JavaBeans? Explain the steps involved in the creation of a JavaBean.
What is the use of PreparedStatement? Differentiate between Statement and PreparedStatement.
What are declaration and expression tags in JSP? Explain with examples.
What is RMI? Write a RMI client and server program to find the greater number among two numbers.
Write short notes on (Any two):
a) JMenuBar
b) Session handling in Servlet
c) Marshalling and Unmarshalling of arguments in RMI
Attempt any TWO questions
[2x10=20]Why do we need to use layout managers in GUI programming? Write a program to create a GUI form that takes data about a customer including cid, name, address, email and age and insert these data into the Customer table of the Shop database.
Explain the lifecycle of a Java Servlet. Write a servlet program that takes three numbers from an HTML page and computes the sum of natural numbers up to the greatest number among the three numbers.
What is directive element in JSP? Explain in detail. Create a JSP page that verifies the username and password entered form an HTML file and if the username and password are correct it displays a greetings message. Otherwise, it redirects to the register page.