Sie sind auf Seite 1von 4

Code No: RR210502 Set No.

1
II B.Tech I Semester Supplimentary Examinations, November 2007
OBJECT ORIENTED PROGRAMMING THROUGH JAVA
( Common to Computer Science & Engineering, Information Technology
and Computer Science & Systems Engineering)
Time: 3 hours Max Marks: 80
Answer any FIVE Questions
All Questions carry equal marks
⋆⋆⋆⋆⋆

1. (a) What is object oriented programming? How is it different from procedure


oriented programming?
(b) What are unique advantages of an object oriented paradigm? [8+8]

2. Explain the following in detail:

(a) Data abstraction


(b) packages
(c) constructors
(d) destructors. [4×4]

3. (a) Define an interface? Write a program which illustrates the way to design and
implement an interface.
(b) Give an example where interface can be used to support multiple inheritance.
[8+8]

4. Write a program that randomly draws characters in different font sizes and colors.
[16]

5. (a) What is exception handling? Why is it considered as a necessary feature in


java?
(b) Write a program to catch Array Out of Bounds Exception when we enter more
number of arguments at command prompt. [8+8]

6. (a) List out various properties of threads.


(b) Discuss about thread class and runnable interface. [8+8]

7. (a) How to write stored procedures with JDBC.


(b) What is prepared statement? Explain with an example. [8+8]

8. What are the uses of TCP/IP client sockets and explain in detail? [16]

⋆⋆⋆⋆⋆

1 of 1
Code No: RR210502 Set No. 2
II B.Tech I Semester Supplimentary Examinations, November 2007
OBJECT ORIENTED PROGRAMMING THROUGH JAVA
( Common to Computer Science & Engineering, Information Technology
and Computer Science & Systems Engineering)
Time: 3 hours Max Marks: 80
Answer any FIVE Questions
All Questions carry equal marks
⋆⋆⋆⋆⋆

1. Compare and contrast Java language with C language. [16]

2. (a) Are abstraction and encapsulation both necessary for OO? Does the prevalence
of one imply the other? Justify?
(b) Illustrate dynamic binding with a Java program.
(c) What are the various polymorphism schemes in Java? Explain briefly.
[6+5+5]

3. (a) Explain the two general forms of usage of the pseudo variable super.
(b) Write a Java program to illustrate the usage of super to call super class con-
structors. [8+8]

4. Describe about various components in Swing. [16]

5. (a) Distinguish between exception handler and conventional methods for the process-
ing of errors.
(b) Discuss about the various runtime exceptions arise during arithmetic opera-
tions. [8+8]

6. (a) List out various properties of threads.


(b) Discuss about thread class and runnable interface. [8+8]

7. What is JDBC? Explain 2-tier JDBC model and 3-Tier JDBC model. [16]

8. (a) Write a client server program using java.net package. Where client sends
messages and server should receive and print on its monitor.
(b) Give an overview of servlets. [8+8]

⋆⋆⋆⋆⋆

1 of 1
Code No: RR210502 Set No. 3
II B.Tech I Semester Supplimentary Examinations, November 2007
OBJECT ORIENTED PROGRAMMING THROUGH JAVA
( Common to Computer Science & Engineering, Information Technology
and Computer Science & Systems Engineering)
Time: 3 hours Max Marks: 80
Answer any FIVE Questions
All Questions carry equal marks
⋆⋆⋆⋆⋆

1. Describe Java as an Object Oriented Programming language. [16]


2. (a) What is the difference between Object based and Object oriented program-
ming.
(b) What is containership? How does it differ from inheritance. [8+8]
3. (a) Which of these are necessary for runtime polymorphsim? Justify.
i. method overriding
ii. method overloading
iii. inheritance
iv. method signature match in the base and derived classes for the polymor-
phic methods
v. late binding
(b) What is abstract super class? What is abstract method? What is interface
inhertitance? What for are implements and extends keywords used?
(c) Contrast w.r.t. Java : interface inheritance Vs. class inheritance. [8+4+4]
4. Write a Java program to create an applet with six buttons representing your favorite
six colors,when button is clicked, the background must change to the corresponding
colour. [16]
5. (a) Write a java program that demostrates the order of exception handler is im-
portant.
(b) If we try to catch a super class exception type before a sub class type, compiler
generates exception errors. Explain why this error occurs with an example?
[8+8]
6. (a) Write a program to read input from the key board and echo it on the monitor
using InputStreamReader.
(b) Explain about the various InputStreams and OutputStreams in java. [8+8]
7. (a) What are the practical applications of servlet?
(b) What are the various reasons of using servlet? [8+8]
8. What is Remote Method Invocation? Explain the creation of remote object, remote
interface with suitable examples. [16]

⋆⋆⋆⋆⋆

1 of 1
Code No: RR210502 Set No. 4
II B.Tech I Semester Supplimentary Examinations, November 2007
OBJECT ORIENTED PROGRAMMING THROUGH JAVA
( Common to Computer Science & Engineering, Information Technology
and Computer Science & Systems Engineering)
Time: 3 hours Max Marks: 80
Answer any FIVE Questions
All Questions carry equal marks
⋆⋆⋆⋆⋆

1. Describe Java as an Object Oriented Programming language. [16]

2. Explain the following in detail:

(a) Data abstraction


(b) packages
(c) constructors
(d) destructors. [4×4]

3. (a) Explain the difference between static and dynamic binding with examples.
(b) Explain how to call virtual functions in base class constructor? [8+8]

4. Write a sample program to handle Mouse events and window events. [16]

5. Using inheritance, create an exception in super class and various exceptions in sub
classes. Write a program to demonstrate that the catch specifying the super class
catches the sub class exceptions. [16]

6. (a) How can characters be read in java?


(b) What is the strategy to read sentences in java? [8+8]

7. (a) What are the practical applications of Servlets?


(b) Discuss java Servlet architecture. [8+8]

8. Write short notes on the following:

(a) TCP/IP programming


(b) client/server model implementation
(c) CORBA
(d) Getting information from Internet. [4×4]

⋆⋆⋆⋆⋆

1 of 1

Das könnte Ihnen auch gefallen