[go: up one dir, main page]

0% found this document useful (0 votes)
64 views2 pages

OOPS Mid 2 Important Questions

These are the important topics of oops
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
64 views2 pages

OOPS Mid 2 Important Questions

These are the important topics of oops
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

OOPS Mid 2 Important Questions

UNIT III

1. a) Explain the various methods used in inter thread communication.


b) Write a Java program for producer-consumer problem. What is the use of
synchronize keyword. Explain in detail with an exampleprogram.
2. What is a thread. What are the different ways in which a thread can be
created
3. Discuss about wait(), notify() and notifyAll() methods in Java.
4. What is a deadlock. Is it possible to occur in a multithreaded
program. Justify ur answer.
5. What is multithreading. Write a Java Program to create multiple
threads.
b) What is a thread. What are thread states and priorities.
6. Explain multithreading. What are the different ways in which java
implements multithreading. Explain one of these ways with an example
program

UNIT IV

1. a) Explain the AWT class hierarchy.


b) What is the difference between AWT and Swing.
2. Explain the various layout Managers in Java with an example.
3. Explain the flow layout and border layout with an example program.
a) What is event handling. Explain the various sources of events.
b) Explain the delegation event model in Java.
4. Explain the event classes and event listeners interfaces in Java.
5. Write a java program for handling all Mouse Events.
6. Write a Java program to handle the Button events.
7. Explain the various methods in the KeyEvent class.
8. Explain about Adapter Classes
UNIT V

1.a) What is an applet. What are the differences between applet and application
program in Java?
b) Explain the various methods of Applet class.
2. Write an applet program to display a simple message.
3.Explain the process of passing parameters to an applet with an example.
4.Explain the following containers in Java:
a) JFrame
b) JApplet
c) Jpanel
d) JDialog
5.Explain the constructors and methods of the following classes:
a) JLabel
b) JButton
c) JTextArea
d) JTextField

You might also like