Beruflich Dokumente
Kultur Dokumente
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
⋆⋆⋆⋆⋆
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]
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
⋆⋆⋆⋆⋆
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]
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]
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 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
⋆⋆⋆⋆⋆
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]
⋆⋆⋆⋆⋆
1 of 1