You are on page 1of 1

RA

II B.TECH – I SEM EXAMINATIONS, DECEMBER - 2010


OBJECT ORIENTED PROGRAMMING
(COMMON TO EEE, ME, ECE, EIE, AE)
Time: 3hours Max.Marks:75
Answer any FIVE questions
All questions carry equal marks
---

1. Distinguish the following terms.


a) Objects and classes
b) Data abstraction and Data encapsulation [8+7]

2. What is Overloading? Write mechanisms for Overloading Methods and Constructors?


[15]

3. When do we declare a method or class as ‘final’? Explain. [15]

4.a) How calendar class is useful in java?


b) How can you generate random numbers? Explain with a simple program? [8+7]

5. What are Checked Exceptions and Unchecked Exceptions? Explain some of these
exceptions with an example and also give the differences between them. [15]

6.a) What is Unicasting and Multicasting of event. Explain with example.


b) What is the meaning of registering and unregistering in the context of events. Why
they are needed. In Java how do you register and unregister an event. Explain with an
example. [7+8]

7.a) Explain menu class and menu actions with examples.


b) Is it possible to create nested menus and submenus? If so, how? [7+8]

8.a) What are possible ways to create Date class object


b) Explain about ArrayList class with an example program? [8+7]

********

You might also like