OOPS (Through Java)

MCA II Semester [R09] Regular Examinations June 2010
                                 OOPS (Through Java)

Time: 3 Hours                                                       Max Marks: 60

Answer any FIVE questions All questions carry EQUAL marks



1. a) Compare procedural programming and object oriented programming.

b) Explain the following OOPs concepts:

i) Encapsulation ii) Inheritance iii) Polymorphism



2. a) Explain constructor overloading with an example.

b) Explain i) this keyword ii) Garbage collection



3. a) Explain dynamic method dispatch with an example.

b) Explain the uses of super keyword with an example.



4. a) Explain defining, creation and accessing a package with an example each.

b) Write the differences between classes and interfaces.



5. a) Explain the creation and usage of your own exception with an example.

b) Explain the thread synchronization with an example.



6. a) Describe delegation event model.

b) Explain the handling of keyboard events with an example.



7. a) Explain the life cycle of an applet.

b) Write an applet program to display a pentagon.



8. a) Write the limitations of AWT components.

b) What is a scroll pane? Explain the usage of JScrollPane class with an example.







MCA II Semester [NR] Supplementary Examinations, June 2010
                             Programming in java

Time: 3 Hours                                                    Max Marks: 60

Answer any FIVE questions All questions carry EQUAL marks



1. a) Explain the following OOPS concepts:

    i) Encapsulation ii) Polymorphism iii) Inheritance

   b) What are the jump statements in Java? Explain them.



2. a) Explain the use of the following statements.

     i) static ii) final

     b) Explain parameter passing techniques in Java with an example each.



3. a) Explain method overloading with an example.

    b) Explain defining, creating and accessing a package with suitable example.



4. a) Write the differences between classes and interfaces.

    b) Explain the usage of try, catch and finally keywords with an example.



5. a) Explain the creation of thread with Runnable interface with an example.

    b) Explain Inter Thread Communication with an example.



6. a) Write a java program illustrating Action Event.

    b) Write a java program to display an ovel inside a rectangle.



7. a) Explain the border and Grid layout managers with an example each.

    b) Explain Applet Life Cycle methods.



8. a) What is URL? Write a java program to parse the URL.

   b) List and explain the string comparison methods available in String class

0 comments:

Post a Comment

 
Etutos © 2010-2011