Académique Documents
Professionnel Documents
Culture Documents
com
R09
Code: 9A05402
(a)
(b)
(a)
(b)
(a)
(b)
(a)
(b)
D
L
R
O
W
U
(a)
(b)
(a)
(b)
T
N
*****
www.jntuworld.com
www.jntuworld.com
R09
Set No. 2
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
T
N
[15]
[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
Set No. 4
D
L
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.
[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]
?????
www.jntuworld.com
[15]
www.jntuworld.com
R09
Set No. 1
[10+5]
D
L
R
O
[15]
(b) Explain how the Abstract class is implemented in the class with an example.
[7+8]
W
U
[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
Set No. 3
D
L
R
O
[8+7]
[7+8]
W
U
T
N
[7+8]
[15]
[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
Set No. 2
[7+8]
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
[7+8]
T
N
[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]
www.jntuworld.com
www.jntuworld.com
R09
Set No. 4
[8+7]
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
(b) Write a program that illustrates notify, notifyAll( ) and wait( ) methods of
object class.
[7+8]
W
U
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
Set No. 1
[8+7]
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
T
N
5. (a) Discuss various integer constants, constructors and methods defined in the
KeyEvent 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+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
Set No. 3
[10+5]
2. What are variables? Discuss about the scope and life time of variables in detail.
[15]
D
L
[15]
R
O
W
U
(b) Can a sub class access all the members of super class? Justify your answer.
[7+8]
T
N
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]