You are on page 1of 1

Code: R5210302

R05

II B.Tech I Semester (R05) Supplementary May 2012 Examinations OOPS THROUGH JAVA
(Mechanical Engineering) Time: 3 hours Answer any FIVE questions All questions carry equal marks 1. ***** Explain briefly the following object oriented concepts. (i) Abstraction and encapsulation. (ii) Methods and messages. (iii) Inheritance. (iv) Polymorphism. (a) (b) How objects are constructed? Explain constructor overloading with an example. Write short notes on access specifiers in java. Explain briefly the following concepts with an example. (i) Method overriding. (ii) Dynamic method dispatch. (iii) Abstract class. Create an interface with at least one method, in its own package. Create a class in a separate package. Add a protected inner class that implements the interface. In a third package, inherit from your class and, inside a method, return an object of the protected inner class, upcasting to the interface during the return. In java, is exception handling implicit or explicit or both. Explain with the help of example java programs. With the help of an example program explain how you handle all mouse and keyboard related events. (a) (b) (c) Explain with an example. How to create and run an applet? Explain any two layout managers. Explain about java swing. Explain the following: (i) TCP/IP sockets. (ii) Datagrams. (iii) String handling. Max. Marks: 80

2.

3.

4.

5.

6.

7.

8.

*****

You might also like