0% found this document useful (0 votes)
18 views

Readmitted - 07a40591 Object Oriented Programming

This document outlines the exam for Object Oriented Programming for the II B.TECH – I SEM students in December 2010. It lists 8 questions, asking students to choose 5 questions to answer. The questions cover topics like the differences between objects and classes vs data abstraction and encapsulation, method and constructor overloading, when to declare methods or classes as 'final', using the Calendar class and generating random numbers, checked and unchecked exceptions, event unicasting and multicasting with registration and unregistration, the Menu class and actions with nested menus, and creating Date objects and using the ArrayList class.

Uploaded by

swet610
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
18 views

Readmitted - 07a40591 Object Oriented Programming

This document outlines the exam for Object Oriented Programming for the II B.TECH – I SEM students in December 2010. It lists 8 questions, asking students to choose 5 questions to answer. The questions cover topics like the differences between objects and classes vs data abstraction and encapsulation, method and constructor overloading, when to declare methods or classes as 'final', using the Calendar class and generating random numbers, checked and unchecked exceptions, event unicasting and multicasting with registration and unregistration, the Menu class and actions with nested menus, and creating Date objects and using the ArrayList class.

Uploaded by

swet610
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 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