Vous êtes sur la page 1sur 4

Code :R7411302 1

IV B.Tech.I Semester(R07)Regular Examinations, November/December 2010


OBJECT ORIENTED PROGRAMMING
(Electronics & Control 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.

2. (a) Explain the structure and significance of main method in Java.


(b) Write a program to display all numbers from 1 to n, which are divisible by 5.

3. (a) Explain the significance of public, private and protected access specifiers in Inheritance?
(b) What are the various polymorphism schemes in Java? Explain briefly.

4. (a) Write a Java program to implement nested packages.


(b) Discuss the various levels of access protection available for package.

5. (a) What is the difference between multi processes and multi threading?
(b) Describe the complete life cycle of a thread.

6. Explain the following terms.

(a) Window event class


(b) Item listener interface
(c) Action listener interface
(d) Adaptor class.

7. Explain with an example mouse motion listener interface.

8. (a) What is Inetaddress? How to create an Inetaddress?


(b) What are the classes in Java with regards to sockets?

?????
Code :R7411302 2
IV B.Tech.I Semester(R07)Regular Examinations, November/December 2010
OBJECT ORIENTED PROGRAMMING
(Electronics & Control Engineering)
Time: 3 hours Max Marks: 80
Answer any FIVE questions
All questions carry equal marks
?????

1. (a) Java is both compiled and interpreted language-discuss.


(b) What is command line argument? How it is useful?
(c) What is garbage collection? Explain in detail.

2. Explain the following:

(a) Static members of a class


(b) Final
(c) This
(d) Finalize

3. (a) Write a Java program to multiply two matrices.


(b) Write a Java program to implement hybrid inheritance.

4. (a) What is an interface? What is the major difference between an interface and class?
(b) List out the advantages of package.
(c) Explain about CLASS PATH variable.

5. (a) List some of the common types of exceptions that might occur in Java. Give example.
(b) What are the advantages of exception handling mechanism in a program?

6. (a) Describe about various layout managers.


(b) Differentiate application programs and applet programs.

7. Discuss about Grid layout and give example program for Grid layout.

8. Discuss briefly about the following:

(a) TCP
(b) UDP
(c) URL.

?????
Code :R7411302 3
IV B.Tech.I Semester(R07)Regular Examinations, November/December 2010
OBJECT ORIENTED PROGRAMMING
(Electronics & Control Engineering)
Time: 3 hours Max Marks: 80
Answer any FIVE questions
All questions carry equal marks
?????

1. (a) What are the main concepts of object oriented programming?


(b) What is constructor function? Explain different types of constructors?

2. (a) What is meant by call by reference? How call by reference can be achieved in Java?
(b) Discuss the string class in Java.

3. (a) A super class variable can reference a sub class object. Justify with an example program.
(b) Write a Java program to implement multiple inheritance using interface.

4. (a) What is an interface? What are the similarities between interface and class?
(b) How to design and implement an interface. Explain with an example program.

5. (a) What are the differences between synchronous and asynchronous exceptions.
(b) When try, catch, throw, statements are used. Explain with an example program.

6. Explain the following:

(a) Delegation event model


(b) Adapter classes
(c) AWT Vs SWING components.

7. Write a program to illustrate the mouse and window events.

8. What are the uses of TCP/IP client sockets and explain in detail.

?????
Code :R7411302 4
IV B.Tech.I Semester(R07)Regular Examinations, November/December 2010
OBJECT ORIENTED PROGRAMMING
(Electronics & Control Engineering)
Time: 3 hours Max Marks: 80
Answer any FIVE questions
All questions carry equal marks
?????

1. Write down the properties of Java language.

2. (a) What is meant by overloading methods? What are the advantages of overloading concept?
(b) What is the usage of operator new? Explain with an example.

3. Describe the various forms of implementing inheritance? Give an example program for each
case?

4. (a) What is a package? How do we add a class or interface to a package?


(b) Discuss the various levels of access protection available for packages and their implication.

5. (a) Differentiate process based multitasking and a thread based multi tasking.
(b) How many ways are possible in Java to create multi threaded program? Discuss difference
between them.

6. (a) What is Java applet? What is the advantage of writing applets in Java?
(b) Explain about life cycle methods of an applet.

7. How parameters are passed to an applet from HTML file. Explain with an example.

8. Explain about datagram, datagram server and datagram client.

?????

Vous aimerez peut-être aussi