You are on page 1of 4

1

Code: R7411302 IV B. Tech I Semester (R07) Regular & Supplementary Examinations, November/December 2011 OBJECT ORIENTED PROGRAMMING (Electronics & Control Engineering) Time: 3 hours Max Marks: 80 Answer any FIVE questions All questions carry equal marks ***** 1 (a) (b) (a) (b) 3 (a) (b) (a) (b) (a) (b) How Java is strongly associated with the Internet? Explain about application programming interface in Java. What is a class? How does it accomplish data hiding and how do classes help us to organize our programs? Explain about recursion with a suitable example. What is method overriding? Write a program in Java to implement method overriding. How do we use final with inheritance? What is a package? Give the API packages supported by Java with their functionality. How do we implement naming convention in packages? Explain how exception handling mechanism can be used for debugging a program. How many catch blocks can we use with one try block? Write an example program. What are the methods supported by the following interfaces? Explain each of them: Action listener interface. Mouse motion listener interface. Text listener interface. What is JFC? Explain the differences between JText Area, JText Component & JText Field with examples. What do you mean by URL? How to create an URL? Explain several methods provided by URL. Give appropriate examples. *****

6 (a) (b) (c) 7

2
Code: R7411302 IV B. Tech I Semester (R07) Regular & Supplementary Examinations, November/December 2011 OBJECT ORIENTED PROGRAMMING (Electronics & Control Engineering) Time: 3 hours Max Marks: 80 Answer any FIVE questions All questions carry equal marks ***** 1 (a) What is World Wide Web? What is the contribution of Java to the WWW? (b) Give Hardware and Software requirements supported by Java. (a) What are objects? How are they created from a class? Explain with an example. (b) When do we declare a method or class final? Explain. What is inheritance? Explain different forms of inheritance. Describe the various forms of implementing interfaces. Give example Java code for each case. (a) What are the two methods by which we may stop threads? (b) What is an exception? How do we define a catch block? Explain the following: (a) Adapter classes. (b) AWT. (c) Event listeners. What is an Applet? Give the life cycle of an Applet. (a) Briefly explain string class. (b) Write a program to count the frequency of words, characters in the given list of text. *****

3 4

7 8

3
Code: R7411302 IV B. Tech I Semester (R07) Regular & Supplementary Examinations, November/December 2011 OBJECT ORIENTED PROGRAMMING (Electronics & Control Engineering) Time: 3 hours Max Marks: 80 Answer any FIVE questions All questions carry equal marks ***** 1 (a) (b) (a) (b) (a) (b) (a) (b) What is type casting? Why is it required in programming? Discuss the principles of Object Oriented Programming. What is a static member? How do we use and define static members in a class? What is the use of this keyword? Explain. What is an object class? Explain about object class. Elaborate on dynamic method dispatch. How do we import classes from other packages? Explain with a suitable example. Write a program for Creating and Accessing a package. List out some of the common types of exceptions that might occur in Java. Give example for each exception. What are the methods supported by key listener interface and mouse listener interface. Explain each of them with examples. What are containers? List various containers. Explain the usage of Jpanel with example. Explain the following: (i) TCP/IP Socket. (ii) Data gram. (iii) Inet address. *****

7 8

4
Code: R7411302 IV B. Tech I Semester (R07) Regular & Supplementary Examinations, November/December 2011 OBJECT ORIENTED PROGRAMMING (Electronics & Control Engineering) Time: 3 hours Max Marks: 80 Answer any FIVE questions All questions carry equal marks ***** 1 (a) Describe with a flow chart, how various Java tools are used in the application development. (b) Describe in detail the steps involved in implementing a stand alone program with a suitable example. (a) How does string class differ from the string Buffer class? (b) Describe the method for Accessing class members in Java. Give an example. Where interface can be used to support multiple inheritance. Develop a stand alone Java program for the example. (a) What are the major differences between interface and a class? (b) Discuss the various levels of access protection available for packages and their implications. (a) How do we set priorities for threads? Give an example. (b) What is finally block? When and how is it used? Give a suitable example. (a) How using different fonts improves the user interface? (b) What is the functionality supported by Java related to fonts? Briefly explain the components of AWT. (a) How different machines in a network are be addressed? (b) What is a port? What is the difference between port and socket? *****

7 8

You might also like