Java 2006
Java 2006
www.andhracolleges.com
⋆⋆⋆⋆⋆
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?
⋆⋆⋆⋆⋆
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
⋆⋆⋆⋆⋆
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]
⋆⋆⋆⋆⋆
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 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]
7. Describe the JDBC architecture and explain the process of writing JDBC programs.
[16]
⋆⋆⋆⋆⋆
www.andhracolleges.com
⋆⋆⋆⋆⋆
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]
8. How can you read a file on a web server? Write a program to illustrate the concept.
[16]
⋆⋆⋆⋆⋆