You are hired by a reputed software company which is going to design an application for 'Movie Rental System'. Your responsibility is to design a schema named MRS and create a table named Movie(id, Title, Genre, Language, Length). Write a program to design a GUI form to take input for this table and insert the data into table after clicking the OK button. [10]
2.
Write short notes on: a. JAVA beans and JAR file b. MVC design pattern [2.5+2.5]
Event Handling
1.
Define event delegation model. Why do we need adapter class in event handling? [5]
Programming in Java
1.
A non-empty array A of length n is called an array of all possibilities if it contains all numbers between 0 and A.length-1 inclusive. Write a method named isAllPossibilities that accepts an integer array and returns 1 if the array is an array of all possibilities, otherwise it returns 0. [5]
2.
When does the finally block is mandatory in while handling exception? Describe with a suitable scenario. [5]
3.
What is the task of manifest file? Write the procedure to create it. [5]
4.
Why multiple inheritance is not allowed in Java using classes? Give an example. [5]
5.
Why synchronization is essential in multithreading? Describe. [5]
RMI and CORBA
1.
What is the significance of stub and skeleton in RMI? Create a RMI application such that a client sends an Integer number to the server and the server return the factorial value of that integer. Give a clear specification for every step. [10]
Servlets and Java Server pages
1.
Explain the life cycle of a servlet. [5]
2.
How forms can be created and processed using JSP? Make it clear with your own assumptions. [5]
User Interface Components with Swing
1.
Describe the responsibility of Serializable interface. Write a program to read an input string from the user and write the vowels of that string in VOWEL.TXT and consonants in CONSONANT.TXT. [10]
2.
What is the task of Layout manager? Describe about default layout manager. [5]