rr210502 Object Oriented Programming Through Java
rr210502 Object Oriented Programming Through Java
1
II B.Tech I Semester Supplimentary Examinations, February 2008
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) What is inheritance and how does it help us to create new classes quickly?
(b) Describe the different forms of inheritance with examples? [8+8]
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]
5. A program throws an exception and the appropriate exception handler begins exe-
cution, and this exception handler in turns throws the same exception. Is this above
approach creating an infinite recursion? Justify your answer with an example. [16]
⋆⋆⋆⋆⋆
1 of 1
Code No: RR210502 Set No. 2
II B.Tech I Semester Supplimentary Examinations, February 2008
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. 3
II B.Tech I Semester Supplimentary Examinations, February 2008
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) What is multiple inheritance? Explain how does Java support multiple inher-
itance?
(b) Write about the data types supported by Java? [8+8]
3. (a) Explain the two general forms of usage of the pseudovariable super.
(b) Write a Java program to illustrate the usage of super to call superclass con-
structors. [8+8]
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. Write program to copy the contents of one file to another file. [16]
7. What is JDBC? Explain 2-tier JDBC model and 3-Tier JDBC model. [16]
⋆⋆⋆⋆⋆
1 of 1
Code No: RR210502 Set No. 4
II B.Tech I Semester Supplimentary Examinations, February 2008
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) Give general form of the package statement. Give an example package creation
statement.
(b) Give general form of a multileveled package statement. What is the signifi-
cance of the CLASSPATH environment variable in creating/using a package?
(c) Give the general form of the import statement. Illustrate a Java program that
creates a package and uses it. [5+6+5]
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. (a) Describe about Event handling model? Explain about any three components
in Swing.
(b) Write a program for creating and manipulating the radio button. [8+8]
6. Write program to copy the contents of one file to another file. [16]
7. Explain about life cycle of servlet? Where does the basic servlet fit into the servlet
framework? [16]
8. How can you create a custom RNI socket factory and how can you specify the
socket factory in your application? Give and example. [16]
⋆⋆⋆⋆⋆
1 of 1