www.andhracolleges.
com The Complete Information About Colleges in Andhra Pradesh
Code No: RR210502 Set No. 1
II B.Tech I Semester Supplementary Examinations, March 2006
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
www.andhracolleges.com
⋆⋆⋆⋆⋆
1. (a) Write short notes on
i. Java applets and
ii. Byte code.
(b) What is the difference between a program compiled in Java and other lan-
guages like C,C++.
(c) Write a program to demonstrate the concept of class scope and method scope.
Explain the lifetime of a variable. [6+5+5]
2. (a) How is object oriented programming different from procedure oriented pro-
gramming?
(b) Explain any two of the following.
i. Concrete class
ii. classes and objects [8+8]
iii. packages
www.andhracolleges.com
3. (a) Compare and contrast the String class with StringBuffer class.
(b) Write a Java program to illustrate the usage of replace() method of String
Buffer class. Give output. [8+8]
4. Write a program that takes a list of numbers and sorts them in descending order.
[16]
5. (a) Discuss about the nested try statement and how such a program may be
executed?
(b) List out by an example the way to create a user defined exception. [8+8]
6. (a) How is priority level is incorporated in threads and what does it achieve?
(b) What strategy tests the status of a thread? How do you ensure that the main
stops last $ r = ’. [8+8]
7. What is Servlet? What are the reasons to use java servlets? [16]
8. (a) What is TCP/IP? What is the difference between TCP/IP and UDP/IP?
(b) What is socket? Which socket is used for client and server in TCP?
Seminar Topics - Scholarships - Admission/Entrance Exam Notifications
1 ofUSA-UK-Australia-Germany-France-NewZealand
2 Universities List
www.andhracolleges.com Engineering-MBA-MCA-Medical-Pharmacy-B.Ed-Law Colleges Information
www.andhracolleges.com The Complete Information About Colleges in Andhra Pradesh
Code No: RR210502 Set No. 1
(c) How does a client can create a connection with a server? How does a server
can create a connection with a client? [5+5+6]
⋆⋆⋆⋆⋆
www.andhracolleges.com
www.andhracolleges.com
Seminar Topics - Scholarships - Admission/Entrance Exam Notifications
2 ofUSA-UK-Australia-Germany-France-NewZealand
2 Universities List
www.andhracolleges.com Engineering-MBA-MCA-Medical-Pharmacy-B.Ed-Law Colleges Information
www.andhracolleges.com The Complete Information About Colleges in Andhra Pradesh
Code No: RR210502 Set No. 2
II B.Tech I Semester Supplementary Examinations, March 2006
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
www.andhracolleges.com
⋆⋆⋆⋆⋆
1. (a) Explain about Math class methods.
(b) Write about Java API package. [8+8]
2. (a) How is object oriented programming different from procedure oriented pro-
gramming?
(b) Explain any two of the following.
i. Concrete class
ii. classes and objects [8+8]
iii. packages
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. Write a program that takes a list of numbers and sorts them in descending order.
www.andhracolleges.com
[16]
5. Explain with an example, why exception handling is an effective means for dealing
with constructor failure. [16]
6. (a) Give a note about how multitasking is implemented in Java?
(b) How is synchronization enforced? [8+8]
7. Design a multi-tier application using JDBC from servlet. [16]
8. What is remote method invocation? Explain creation of Remote Object, Remote
Interface with suitable examples. [16]
⋆⋆⋆⋆⋆
Seminar Topics - Scholarships - Admission/Entrance Exam Notifications
1 ofUSA-UK-Australia-Germany-France-NewZealand
1 Universities List
www.andhracolleges.com Engineering-MBA-MCA-Medical-Pharmacy-B.Ed-Law Colleges Information
www.andhracolleges.com The Complete Information About Colleges in Andhra Pradesh
Code No: RR210502 Set No. 3
II B.Tech I Semester Supplementary Examinations, March 2006
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
www.andhracolleges.com
⋆⋆⋆⋆⋆
1. (a) Describe areas of application of Object Oriented technology.
(b) What is WWW? What is the contribution of Java to WWW?
(c) List out any five major C++ features that were intentionally removed from
Java. [6+5+5]
2. (a) What is a package and how do you design a package?
(b) Explain the following.
i. Virtual base class
ii. pure virtual functions. [6+5+5]
3. (a) Compare and contrast the String class with StringBuffer class.
(b) Write a Java program to illustrate the usage of replace() method of String
Buffer class. Give output. [8+8]
4. Write a program that draws lines of random lengths in random colors. [16]
www.andhracolleges.com
5. (a) Explain how an exception handling mechanism can be used for debugging a
program?
(b) Create a try block that is likely to generate three types of exceptions and then
incorporate necessary catch blocks to catch and handle them appropriately.
[8+8]
6. (a) Give a note about how multitasking is implemented in Java?
(b) How is synchronization enforced? [8+8]
7. Describe the JDBC architecture and explain the process of writing JDBC programs.
[16]
8. Explain about implementing the Remote Interface with suitable example.
[16]
⋆⋆⋆⋆⋆
Seminar Topics - Scholarships - Admission/Entrance Exam Notifications
1 ofUSA-UK-Australia-Germany-France-NewZealand
1 Universities List
www.andhracolleges.com Engineering-MBA-MCA-Medical-Pharmacy-B.Ed-Law Colleges Information
www.andhracolleges.com The Complete Information About Colleges in Andhra Pradesh
Code No: RR210502 Set No. 4
II B.Tech I Semester Supplementary Examinations, March 2006
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
www.andhracolleges.com
⋆⋆⋆⋆⋆
1. Explain the parameter passing mechanism in Java with an example. [16]
2. (a) What are packages? How they can be accessed?
(b) Explain about data abstraction? [8+8]
3. How to implement multiple inheritance in Java and explain with a suitable example.
[16]
4. Write a program, which illustrates all the mouse and window events. [16]
5. (a) Explain how an exception handling mechanism can be used for debugging a
program?
(b) Create a try block that is likely to generate three types of exceptions and then
incorporate necessary catch blocks to catch and handle them appropriately.
[8+8]
6. (a) How is priority level is incorporated in threads and what does it achieve?
www.andhracolleges.com
(b) What strategy tests the status of a thread? How do you ensure that the main
stops last $ r = ’. [8+8]
7. Design a multi-tier application using JDBC from servlet. [16]
8. How can you read a file on a web server? Write a program to illustrate the concept.
[16]
⋆⋆⋆⋆⋆
Seminar Topics - Scholarships - Admission/Entrance Exam Notifications
1 ofUSA-UK-Australia-Germany-France-NewZealand
1 Universities List
www.andhracolleges.com Engineering-MBA-MCA-Medical-Pharmacy-B.Ed-Law Colleges Information