Académique Documents
Professionnel Documents
Culture Documents
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]
4. Write a program that randomly draws characters in different font sizes and
colors.
[16]
8. What are the uses of TCP/IP client sockets and explain in detail? [16]
⋆⋆⋆⋆⋆
1 of 1
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]
(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
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]
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]
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]