Why do we use Panels while creating GUI applications in Java? Explain the components of the event handling model in Java.
What are adapter classes? What is the benefit of using adapter classes in Java while creating events in GUI programs? Explain with an example.
How the data can be accessed through a resultset object? Explain forward only, scroll-insensitive and scroll-sensitive resultsets.
What is a Javabean? Explain different types of properties in Javabeans.
What are the differences between servlets and Java applications? Explain different methods used for handling cookies in Java.
What are marshalling and unmarshalling of arguments in RMI? Differentiate between CORBA and RMI.
Write short notes on (Any Two):
a) 2D shapes in swing
b) MouseEvent and MouseListener
c) Session tracking
Attempt any TWO questions
[2x10=20]Why do we need to use Layout managers while creating GUI application in Java? Explain the key interfaces required to develop any database application using Java. Also, write a program to display the records from the table Students who have got distinction and have a major subject Data science. Assume that the Student table is in the database College and contains the columns Rollno, Name, Level, Division and Major.
Differentiate between declaration and expression tags used in JSP. Also create a JSP page that contains three textboxes to input three numbers and a button. It should display the greatest number among three numbers when the button is clicked.
What is RMI? Explain its components. Write a client-server application in RMI to find the selling price of an item with cost price Rs. 5000 after a discount of Rs. 50.