0% found this document useful (0 votes)
8 views6 pages

OOP R 19 Question Bank

The document provides a comprehensive overview of Java programming concepts, including Object-Oriented Programming (OOP) principles, inheritance, packages, interfaces, exception handling, multithreading, collections framework, event handling, AWT, applets, and Swing. It covers key characteristics, differences between classes and objects, control statements, exception mechanisms, and GUI design. Each section includes definitions, examples, and practical programming exercises to reinforce understanding.
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)
8 views6 pages

OOP R 19 Question Bank

The document provides a comprehensive overview of Java programming concepts, including Object-Oriented Programming (OOP) principles, inheritance, packages, interfaces, exception handling, multithreading, collections framework, event handling, AWT, applets, and Swing. It covers key characteristics, differences between classes and objects, control statements, exception mechanisms, and GUI design. Each section includes definitions, examples, and practical programming exercises to reinforce understanding.
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/ 6

Introduction to OOP:

1. Java Characteristics / buzz words

2. What are the two paradigms in program development? Differentiate both .

3. Why Java is platform independent. Explain the need of Byte code.

4. Define the principles of OOP.

5. Describe the need of jump statements in Java with example.

6. Explain the various control statements used in Java.

7. Programs using Control statements.

8. Is Java strongly typed language. Describe how type casting is performed.

9. Explain JVM Architecture with a neat sketch.

CLASS, OBJECTS, METHODS AND CONSTRUCTORS:

1. Difference between class and object.

2. Writing a jave program to create a class and object.

3. What is a constructor? Explain the characteristics of it.

4. Demonstrate with example various types of constructors.

5. How Java achieve compile time polymorphism? Explain with example.

6. Does Java allow constructor overloading? If so explain with a example.

7. How Java arrays differ from C/C++.Write a Java program to sort/search.

8. What is the need of StringTokenizer class? Demonstrate with example the


methods supported by it.

9. Difference between method and constructor.


10. Demonstrate the need of "this" keyword in Java.

11. Differentiate the Java’s String and String Buffer classes.

12. Simple programs using String class methods.

13. Difference between class and object.

14. What are the three principles of OOP? Explain how those achieved in Java.

INHERITANCE:

1. What is Inheritance? Explain with example how Java achieves it. List the
advantages.

2. Describe with sketch the various types of inheritance in Java.

3. Is Java supports multiple inheritance? Justify with reason.

4. Demonstrate with example the final keyword in Java.

5. Demonstrate with example super keyword in Java.

6. Demonstrate with example use of static keyword in Java.

7. What is method overriding? Demonstrate the need of it with an example

8. Difference between method overloading and method overriding.

9. What is Runtime polymorphism? Demonstrate with example how Java


achieves it. (DMD)

10. What is an Abstract class? List the characteristics of it. Demonstrate with
example how to use abstract classes in Java.

11. What is the difference between concrete and non concrete method in Java.

12. What is the need of extends keyword. Explain with an example.

13. Inheritance examples based on the given data.


PACKAGES AND INTERFACES:

1. What is a package? Explain the role of various modifiers used in Java with
respect to packages.
2. Explain access control mechanism in Java.
3. Demonstrate with example how to create, import and access a package.
4. Practice programs how to create packages for given classes and methods.
5. Define the term interface. What is the difference between classes and
interfaces?
6. Differentiate abstract classes and interfaces.
7. Is java supports multiple inheritance? If so how it is implemented it.
8. Demonstrate with an example how to use variables in interface.
9. Show an example how multiple inheritance is achieved using interfaces.
10.What is the procedure to define and implement an interface?
Demonstrate with an example.

EXCEPTION HANDLING:

1. Define the term Exception. Write the structure of exception handling


mechanism in Java.
2. Write a Java program to demonstrate exception handling using try, catch,
throw, throws and finally keywords.
3. What is the difference between Checked and Unchecked exceptions?
4. Writing a User defined exception class for the given information. (Custom
exception also same).
5. Difference between throw and throws key words.
6. Demonstrate with example how to define user defined or custom
exceptions in Java.
7. Program to handle unchecked exception in Java.
8. Program to handle checked exception in Java.
MULTITHREADING:

1. What is the difference between process and thread?


2. Write a multithreaded program by extending Thread class.
3. Write a multi threaded program by implementing Runnable interface.
4. Write a multi threaded program according to given problem.
5. Explain java approach of handling thread priorities.
6. What is thread synchronization? When Java needs synchronization of
threads. Explain with an example.
7. Demonstrate with a neat sketch the life cycle of thread.
8. How java achieves Interthread communication? Explain with example.
(Producer Consumer Problem).
9. Explain the need of following methods
wait()
notify()
notifyAll()
10. Explain the following methods of Thread class.
run()
sleep()
start()

COLLECTIONS FRAMEWORK:

1. What is a Collection in Java? How it is advantage over normal use of


arrays.
2. Difference between Array and ArrayList
3. Differences between List and Set.
4. Writing Programs using iterator.
5. Program to demonstrate the use of ArrayList with objects of Student /
Employee/ Product/Book etc.
6. Show the Hierarchy of Collection framework.
7. Program to demonstrate HashSet in Java
8. How TreeSet differs from HashSet.
9. Remember the common methods provided by Collection interface to
write any program.
10. Write a Stack program / queue program using LinkedList in
Collections.

EVENT HANDLING:

1. Demonstrate with a neat sketch the Delegation Event Model in Java.


2. What is an Event? Describe the various event sources in AWT.
3. What is a Listener? Explain the role of it in Event handling.
4. Describe any four event listeners with their methods.
5. What is an Event class? Describe any 4 event classes.
6. Write a java program to demonstrate mouse and mouse motion events.
7. Write a java program to demonstrate key events.
8. Demonstrate with example the use of Adapter classes in Java.
9. Use adapter classes to handle only mouse click.
10. Use adapter class to handle only keyreleased / keypressed.

AWT:

1. Describe the AWT class hierarchy.


2. What is a Layout manager? Why it is required in GUI.
3. Demonstrate with example use of CardLayout.
4. Demonstrate with example use of BorderLayout.
5. List the drawbacks of AWT.
6. Practice how to use AWT controls like buttons,lables,choice,list,checkbox ,
textfiled, text area..to answer or design a GUI.
Eg: Login window, registration form etc.
Applets:
1. What is an applet? How it differ from console program.
2. Describe the life cycle of an applet with a neat sketch.
3. Write an applet program to display a message on applet window by
demonstrating its life cycle methods.

SWINGS:
1. Design a GUI using Swing controls (buttons,labels,radio, checkbox,
textfields,combobox,list etc)
2. What are the differences between AWT and Swings?
3. List the advantages of Swings over AWT.
4. Create a JTable object to hold information of
Employee/Student/Product etc. and add a scrollpane to it.

“Practice AWT and Swings to design a given GUI structure.”

You might also like