MCA IV (Fourth) Semester Examination 2013-14

Course Code:MCA413 Paper ID:0874413

Advanced Java

Time: 3 Hours Max. Marks: 70 Max Marks: 75

Note: Attempt six questions in all. Q. No. 1 is compulsory.

1. Answer any five of the following (limit your answer in 50 words). (4x5=20)

a) What is the use of static variable? Explain the difference between static and normal function.

b) What is the difference between final, finally, finalize? Explain by giving an example.

c) What is the use of cookies in java servlet? Explain.

d) What are the objects? How are they created from a class? Explain by giving an example.

e) What is the difference between subclass and super class? Describe different forms of inheritance with examples.

f) Compare and contrast overloading and overriding methods in java.

g) How does data hiding is accomplished in java? Also explain the term data abstraction.

h) What is abstract class? When do we declare a method or class abstract? Give examples.

2. What do you understand by AWT? Write important classes and interface in AWT API? Write a program to create window using AWT. How Java Swing is better than Java AWT? (10)

3. How will you apply priorities in multithreading? Describe the complete life cycle of a thread. Write a program to implement multithreading in java swing. (10)

4. What do you understand by Event-handling? What are the different event listener Interfaces? Write a program for handling mouse events. (10)

5. What is JDBC Driver? Explain and write type of JDBC drivers. Write a program for data base connectivity in java using either MS-Access or My-SQL. (10)

6. What is use of java Servlet? Explain the life-cycle of Servlet with diagrams? Write a sample program of java Servlet. (10)

7. What are the properties of Enterprise Java Bean? Write the difference between session bean and Entity bean by giving an example. (10)

8. Write short notes on the following: (2.5x4=10)

a) Access Specifier

b) Delegation Event Model

c) JAR Utilities

d) JSP