Vous êtes sur la page 1sur 9

www.jntuworld.

com

R09

Code: 9A05402

II B. Tech II Semester (R09) Supplementary Examinations, November/December 2011


OBJECT ORIENTED PROGRAMMING
(Common to Computer Science & Systems Engineering, Information Technology & Computer
Science & Engineering)
Time: 3 hours
Max Marks: 70
Answer any FIVE questions
All questions carry equal marks
*****
1 (a) What is meant by responsibility? Explain it in detail.
(b) Define class. Write and explain the hierarchy of classes.
2

(a)
(b)

Write short notes on this keyword and garbage collection in java.


Explain the different parameter passing techniques with example programs.

(a)
(b)

What is the use of final keyword? Explain with example program.


Give brief description about the abstract classes.

(a)
(b)

What is an interface? How can we implement multiple inheritance in java? Explain.


What is the use of CLASSPATH? Explain.

(a)
(b)

Draw and explain the life cycle of a thread.


Write short notes on java build in exceptions.

D
L

R
O

W
U

Explain the different layout managers in detail.

(a)
(b)

Differentiate between applet programming and application programming.


Draw and explain the life cycle of an applet program.

(a)
(b)

Explain in detail about the networking classes and interfaces.


Give brief description about the inetAddress.

T
N

*****

www.jntuworld.com

www.jntuworld.com

R09

Code No: R09220503

Set No. 2

II B.Tech II Semester Examinations,Dec/Jan -2011/2012


OBJECT ORIENTED PROGRAMMING
Common to Information Technology, Computer Science And Engineering
Time: 3 hours
Max Marks: 75
Answer any FIVE Questions
All Questions carry equal marks
?????
1. Discuss about various constructors defined in the following classes:
(a) ImageIcon
(b) JLabel

D
L

(c) JTextField
(d) JButton

[15]

R
O

2. Explain in detail about the ways of achieving run-time polymorphism in Java with
suitable program.
[15]
3. Discuss the following string operations:
(a) String Literals

W
U

(b) String concatenation


(c) String conversion

T
N

(d) String constructors

[15]

4. (a) Explain the way of viewing the world agents to oops.


(b) Explain the way of viewing the world responsibilities about oops.

[7+8]

5. (a) What is meant by polling? Discuss the built in mechanism in Java to avoid
it.
(b) What are the thread Synchronized methods in Java? Explain their usage with
a sample Java program.
[7+8]
6. Discuss in detail about nested and inner classes with examples.

[15]

7. What is meant by AWT? What are the AWT classes contained in the Java.awt
package? Discuss each of them briefly.
[15]
8. (a) Write a program that copies content of one file to another file by removing
unnecessary spaces between words.
(b) Create an employee class. Write an employee manager program to update
employee information using File Input Stream and File Output Stream class.
[7+8]
?????

www.jntuworld.com

www.jntuworld.com

R09

Code No: R09220503

Set No. 4

II B.Tech II Semester Examinations,Dec/Jan -2011/2012


OBJECT ORIENTED PROGRAMMING
Common to Information Technology, Computer Science And Engineering
Time: 3 hours
Max Marks: 75
Answer any FIVE Questions
All Questions carry equal marks
?????
1. (a) Write short notes on costs of Inheritance.
(b) Discuss the different ways in which Java achieves one interface, multiple
methods aspect of polymorphism.
[7+8]

D
L

2. (a) Explain in detail about accessing a package.

(b) Write short note on CLASSPATH environmental variable.

R
O

[7+8]

3. (a) What is a class and object? Is there any relationship between them.Explain.
(b) What is a member function and data members? Explain briefly.

4. Discuss with a sample Java program how to pass parameters to Applets.

[7+8]
[15]

W
U

5. Discuss in detail about Autoboxing and Metadata in Java. Write sample Java
programs to describe each of them.
[15]
6. (a) What are Scroll bars? List out and explain various constructors and methods
defined in it.

T
N

(b) Write a sample Java program to demonstrate the usage of Scroll bars. [7+8]
7. What are Javas unchecked exceptions defined in Java.lang? Explain them with
suitable examples.
[15]

8. Explain the method that initialize the object with an example.

?????

www.jntuworld.com

[15]

www.jntuworld.com

R09

Code No: R09220503

Set No. 1

II B.Tech II Semester Examinations,Dec/Jan -2011/2012


OBJECT ORIENTED PROGRAMMING
Common to Information Technology, Computer Science And Engineering
Time: 3 hours
Max Marks: 75
Answer any FIVE Questions
All Questions carry equal marks
?????
1. (a) Explain different types of class hierarchies.
(b) Give the advantages of OOP.

[10+5]

2. Discuss briefly about the following.

D
L

(a) Javas unchecked RuntimeException subclasses


(b) Javas checked exceptions

R
O

(c) Multiple catch clauses.

[15]

3. (a) Differentiate between Abstract class and Concrete class.

(b) Explain how the Abstract class is implemented in the class with an example.
[7+8]

W
U

4. State and explain various methods defined by Applet class.

[15]

5. (a) Explain with an example how to create threads by implementing the Runnable
interface.

T
N

(b) What is meant by thread priority? Discuss its significance with a sample Java
program.
[7+8]

6. What are the methods defined by Object Output and Object Input class? Explain.
[15]
7. (a) Differentiate between method overloading and method overriding.
(b) Write a program to implement the method overloading.
8. Write Java program for handling keyboard events.
?????

www.jntuworld.com

[7+8]
[15]

www.jntuworld.com

R09

Code No: R09220503

Set No. 3

II B.Tech II Semester Examinations,Dec/Jan -2011/2012


OBJECT ORIENTED PROGRAMMING
Common to Information Technology, Computer Science And Engineering
Time: 3 hours
Max Marks: 75
Answer any FIVE Questions
All Questions carry equal marks
?????
1. (a) What is meant by the class scope. Explain.
(b) How object is created for the class in java? Explain it with the syntax and
example.
[8+7]

D
L

2. (a) What is meant by multithreaded programming? Explain with a sample Java


program the Java thread model.
(b) Explain with a sample Java program how to create threads.

R
O

3. (a) Explain about this keyword with an example.


(b) Differentiate between C++ and java?

[8+7]

[7+8]

4. (a) Discuss in detail about nested Interfaces.

W
U

(b) What happens when an Interface is partially implemented? Explain.


5. List out various Swing component classes and explain them clearly.

T
N

[7+8]
[15]

6. (a) Distinguish between TextField and TextArea classes.


(b) Write a sample Java program to demonstrate the usage of TextArea.

[7+8]

7. (a) Define multiple inheritance. Does Java Support multiple inheritance. Justify
your answer.
(b) Write java program to implement the multilevel Inheritance.

[7+8]

8. What are the Javas built-in exceptions? List the checked exceptions defined in the
Java.lang and explain them clearly with suitable examples.
[15]
?????

www.jntuworld.com

www.jntuworld.com

R09

Code No: R09220503

Set No. 2

II B.Tech II Semester Examinations,APRIL 2011


OBJECT ORIENTED PROGRAMMING
Common to Information Technology, Computer Science And Engineering
Time: 3 hours
Max Marks: 75
Answer any FIVE Questions
All Questions carry equal marks
?????
1. (a) Explain in detail about accessing a package.
(b) Write short note on CLASSPATH environmental variable.

[7+8]

2. (a) Explain about this keyword with an example.


(b) Differentiate between C++ and java?

D
L

[7+8]

3. (a) What is meant by uncaught exceptions? Discuss how to deal with them.
Explain it with a sample Java program.

R
O

(b) Discuss the key terms throw and throws. Give suitable examples which
shows how to use them.
[7+8]
4. (a) Explain about the method overriding in Java.

W
U

(b) Write a java program to implement the method overriding.

[7+8]

5. (a) Discuss in detail about member access rules.

T
N

(b) Write a program to illustrate specification and explain it.

[7+8]

6. (a) Write the HTML Applet Tag and explain each part of it.

(b) What are the four forms of the method repaint ( )? Explain their usage with
a sample Java program.
[7+8]
7. (a) Explain the AdjustmentEvent class and its usage with a sample program.
(b) Discuss about various sources of events.

[8+7]

8. (a) Discuss about wait( ), notify( ) and notifyAll( ) methods in Java.


(b) What is meant by a Deadlock? Is it possible to occur in a multithreaded
program? Justify your answer with a sample Java program.
[7+8]
?????

www.jntuworld.com

www.jntuworld.com

R09

Code No: R09220503

Set No. 4

II B.Tech II Semester Examinations,APRIL 2011


OBJECT ORIENTED PROGRAMMING
Common to Information Technology, Computer Science And Engineering
Time: 3 hours
Max Marks: 75
Answer any FIVE Questions
All Questions carry equal marks
?????
1. (a) Briefly explain Stream Tokenizer class.
(b) Write a program to illustrate the use of stream tokenizer class.

[8+7]

2. (a) Explain about type conversion with an example.


(b) Explain about wrapper class with an examples.

D
L

[7+8]

3. (a) Write Java code for an Applet skeleton and explain it.

(b) What are the methods used for Applet initialization and termination? Explain
them clearly.
[7+8]

R
O

4. (a) Discuss various methods of object class.

(b) Write a program that illustrates notify, notifyAll( ) and wait( ) methods of
object class.
[7+8]

W
U

5. (a) Explain the way of viewing the world agents to oops.

T
N

(b) Explain the way of viewing the world responsibilities about oops.

[7+8]

6. Discuss the following Event Listener Interfaces and also discuss various methods
declared in it.

(a) WindowFocusListener
(b) TextListener
(c) KeyListener
(d) MouseListener

[15]

7. What are the Javas built-in exceptions? List the checked exceptions defined in the
Java.lang and explain them clearly with suitable examples.
[15]
8. Discuss in detail about various Enumerations and Annotations in Java. Write
sample Java programs to describe each of them.
[15]
?????

www.jntuworld.com

www.jntuworld.com

R09

Code No: R09220503

Set No. 1

II B.Tech II Semester Examinations,APRIL 2011


OBJECT ORIENTED PROGRAMMING
Common to Information Technology, Computer Science And Engineering
Time: 3 hours
Max Marks: 75
Answer any FIVE Questions
All Questions carry equal marks
?????
1. (a) What is recursion? Explain in detail.
(b) Write a program to display fibonacci series.

[8+7]

2. Discuss about various methods defined in the following classes:

D
L

(a) ImageIcon
(b) JLabel
(c) JTextField

R
O

(d) JButton

[15]

3. Create an Interface called Integer stack. Write a program that uses this interface
to implement fixed stack and dynamic stack.
[15]

W
U

4. What is meant by multithreaded programming? Discuss about Java thread model,


thread priorities and interthread communication.
[15]

T
N

5. (a) Discuss various integer constants, constructors and methods defined in the
KeyEvent class.

(b) Explain the FocusEvent class and the InputEvent class.

[8+7]

6. (a) Discuss about multiple catch clauses and nested try statements.
(b) Explain the following:
i.
ii.
iii.
iv.

ArithmeticException
ArrayStoreException
ClassCastException
IllegalStateException

[15]

7. (a) What makes java a robust language? Explain.


(b) Explain about the class hierarchies.

[7+8]

8. (a) Define multiple inheritance. Does Java Support multiple inheritance. Justify
your answer.
(b) Write java program to implement the multilevel Inheritance.

?????

www.jntuworld.com

[7+8]

www.jntuworld.com

R09

Code No: R09220503

Set No. 3

II B.Tech II Semester Examinations,APRIL 2011


OBJECT ORIENTED PROGRAMMING
Common to Information Technology, Computer Science And Engineering
Time: 3 hours
Max Marks: 75
Answer any FIVE Questions
All Questions carry equal marks
?????
1. (a) Explain different types of class hierarchies.
(b) Give the advantages of OOP.

[10+5]

2. What are variables? Discuss about the scope and life time of variables in detail.
[15]

D
L

3. Discuss different types of Inheritances in Interfaces.

[15]

4. (a) Discuss various constructors for FlowLayout? Explain them.

R
O

(b) Write a sample Java program to demonstrate the usage of BoarderLayout.


[7+8]
5. (a) How do you construct a class from another class? Explain with an example.

W
U

(b) Can a sub class access all the members of super class? Justify your answer.
[7+8]

T
N

6. (a) Discuss about JApplet, JFrame and JComponent.


(b) What are the methods of Icon interface implemented by ImageIcon class?
Explain them with suitable examples.
[7+8]

7. (a) Explain clearly the Single-member Annotations with a sample Java program.
(b) Discuss the Autoboxing/Unboxing Boolean and character values.
8. List out various classes in Java.util and explain them clearly.
?????

www.jntuworld.com

[8+7]
[15]

Vous aimerez peut-être aussi