Rr221902-object-oriented-programming-(through-java)

  • Uploaded by: SRINIVASA RAO GANTA
  • 0
  • 0
  • October 2019
  • PDF

This document was uploaded by user and they confirmed that they have the permission to share it. If you are author or own the copyright of this book, please report to us by using this DMCA report form. Report DMCA


Overview

Download & View Rr221902-object-oriented-programming-(through-java) as PDF for free.

More details

  • Words: 835
  • Pages: 4
Set No. 1

Code No: RR221902

II B.Tech II Semester Supplimentary Examinations, Aug/Sep 2008 OBJECT ORIENTED PROGRAMMING (THROUGH JAVA) (Electronics & Computer Engineering) Time: 3 hours Max Marks: 80 Answer any FIVE Questions All Questions carry equal marks ⋆⋆⋆⋆⋆ 1. Explain the parameter passing mechanism in Java with an example.

[16]

2. (a) What is a constructor? What is the difference between default constructor and Parameterized constructor? (b) Explain briefly about the packages?

[8+8]

3. (a) Write a java program to illustrate the usage of reverser() method of StringBuffer. Give output. (b) Explain delete() and deletecharAt() methods of StringBuffer class.

[8+8]

4. (a) What is an event driven programming and how is it structured? (b) How events are categorized in Java? (c) What is an adapter class and how can adapter classes are effective? [5+5+6] 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.

[8+8]

6. (a) How can characters be read in java? (b) What is the strategy to read sentences in java?

[8+8]

7. Describe the various methods in HTTP Servlet request interface and HTTP Servlet response interface. [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. 2

Code No: RR221902

II B.Tech II Semester Supplimentary Examinations, Aug/Sep 2008 OBJECT ORIENTED PROGRAMMING (THROUGH JAVA) (Electronics & Computer 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 multiple inheritance? Explain how does Java support multiple inheritance? (b) Write about the data types supported by Java?

[8+8]

3. (a) Explain the overloaded versions of the append() method of the StringBuffer class. (b) Write a Java program to illustrate the usage of the append() method. Give output. [8+8] 4. What is an adapter class? Describe about various adapter classes in detail.

[16]

5. (a) Distinguish between exception handler and conventional methods for the processing of errors. (b) Discuss about the various runtime exceptions arise during arithmetic operations. [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. Describe the architecture of Servlet? What are the requirements for java Servlet? [16] 8. Explain the creation of distributed application using RMI. ⋆⋆⋆⋆⋆

1 of 1

[16]

Set No. 3

Code No: RR221902

II B.Tech II Semester Supplimentary Examinations, Aug/Sep 2008 OBJECT ORIENTED PROGRAMMING (THROUGH JAVA) (Electronics & Computer 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. Explain the following in detail: (a) Data abstraction (b) packages (c) constructors (d) destructors.

[4×4]

3. (a) Contrast the String class with the StringBuffer class. (b) Write a Java program to illustrate the usage of the replace() method of the StringBuffer class. Give output. [8+8] 4. What is an adapter class? Describe about various adapter classes in detail.

[16]

5. (a) Define an exception? How the programmer can handle it? (b) Illustrate the use of try, catch and finally blocks by sample statements for a rare type runtime. [8+8] 6. Write a program to count the number of words, characters, and sentences in a file. [16] 7. Describe the various methods in HTTP Servlet request interface and HTTP Servlet response interface. [16] 8. Explain in detail RMI architecture? ⋆⋆⋆⋆⋆

1 of 1

[16]

Set No. 4

Code No: RR221902

II B.Tech II Semester Supplimentary Examinations, Aug/Sep 2008 OBJECT ORIENTED PROGRAMMING (THROUGH JAVA) (Electronics & Computer Engineering) Time: 3 hours Max Marks: 80 Answer any FIVE Questions All Questions carry equal marks ⋆⋆⋆⋆⋆ 1. (a) Explain about Java class libraries. (b) Explain about relational and logical operators with examples.

[8+8]

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. Write about the following: (a) Inline functions (b) virtual destructor (c) virtual base class.

[5+6+5]

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

[16]

5. Why exception handling is considered as one of the important features in OOPS? Write your explanation with suitable examples. [16] 6. Write a program to implement all the file operations on a student database. [16] 7. Describe the JDBC architecture and explain the process of writing JDBC programs. [16] 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] ⋆⋆⋆⋆⋆

1 of 1

More Documents from "SRINIVASA RAO GANTA"