Code No: RR210502

Set No. 1

II B.Tech I Semester Supplementary Examinations, February 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. Explain various control structures and lexical issues in Java. [16]

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) Explain the difference between static and dynamic binding with examples. (b) Explain how to call virtual functions in base class constructor? 4. (a) Distinguish between Grid layout and Grid bag layout. (b) Give the differences between panel and frame. (c) What is an adapter class? Describe about the Mouse adapter class. [5+6+5] 5. Why exception handling is considered as one of the important features in OOPS? Write your explanation with suitable examples. [16] 6. Discuss about the FileInputstream and FileOutputStream in java with examples. [16] 7. Write a program to illustrate the use of cookie and explain the various methods present under the cookie class. [16] 8. What is network socket? Briefly explain the reserved sockets? ⋆⋆⋆⋆⋆ [16] [8+8]

1 of 1

Code No: RR210502

Set No. 2

II B.Tech I Semester Supplementary Examinations, February 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. 2. Write short notes on the following: (a) Inheritance (b) static class variables (c) package (d) constructors 3. (a) Enumerate and describe any four methods in the StringTokenizer class. (b) Contrast the StringBuffer class with the StringTokenizer class. [8+8] [4×4] [16]

4. Write a program that randomly draws characters in different font sizes and colors. [16] 5. (a) What is an exception? How can java handle the exceptions? Illustrate with an example. (b) Explain about various key words used in handling the exceptions. 6. (a) Develop a program to illustrate how multithread operation is done? (b) What does extending a thread mean? Explain by means of a program. [8+8] 7. Explain about the design of JDBC and typical uses of JDBC. 8. (a) Explain about the terms client and server. (b) How are different machines in a network be addressed? (c) What is a port? What is the difference between port and socket? (d) Write short notes on: i. CORBA ii. SERVLETS ⋆⋆⋆⋆⋆ [4×4] [16] [8+8]

1 of 1

Code No: RR210502

Set No. 3

II B.Tech I Semester Supplementary Examinations, February 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) Explain briefly the main concepts of object-oriented programming. (b) What are constructor and destructor functions? Explain different types of constructors? [8+8] 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 significance 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) Explain the difference between static and dynamic binding with examples. (b) Explain how to call virtual functions in base class constructor? 4. Write a program to illustrate Grid bag layout. 5. Write a java program that illustrates re-throwing an exception. 6. Write about the various ByteStreams in java? 7. What are the various JDBC driver types and explain in detail. [8+8] [16] [16] [16] [16]

8. What is remote method invocation? Explain creation of Remote Object, Remote Interface with suitable examples. [16] ⋆⋆⋆⋆⋆

1 of 1

Code No: RR210502

Set No. 4

II B.Tech I Semester Supplementary Examinations, February 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. Write down the properties of Java language. [16]

2. (a) What is multiple inheritance? Explain how does Java support multiple inheritance? (b) Write about the data types supported by Java? [8+8]

3. (a) Define an interface? Explain the difference between class and interface. List out the various interfaces in java. (b) Write a program to get n numbers from the users and print and largest numbers. [8+8] 4. Write a program to illustrate Grid bag layout. [16]

5. Why exception handling is considered as one of the important features in OOPS? Write your explanation with suitable examples. [16] 6. Write about the various CharacterStreams in java. 7. What is a cookie? Write a program to illustrate the use of cookies. 8. (a) Explain about the terms client and server. (b) How are different machines in a network be addressed? (c) What is a port? What is the difference between port and socket? (d) Write short notes on: i. CORBA ii. SERVLETS ⋆⋆⋆⋆⋆ [4×4] [16] [16]

1 of 1