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

OOP-Questions Unit Wise

The document outlines various topics related to Java programming, organized into five units covering object implementation, constructors, inheritance, exception handling, multithreading, and event handling. It includes comparisons between Java components such as JRE, JVM, and various programming paradigms, along with practical examples and programming exercises. Key concepts such as encapsulation, polymorphism, and generics are also discussed, providing a comprehensive overview of Java programming fundamentals.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
0 views2 pages

OOP-Questions Unit Wise

The document outlines various topics related to Java programming, organized into five units covering object implementation, constructors, inheritance, exception handling, multithreading, and event handling. It includes comparisons between Java components such as JRE, JVM, and various programming paradigms, along with practical examples and programming exercises. Key concepts such as encapsulation, polymorphism, and generics are also discussed, providing a comprehensive overview of Java programming fundamentals.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

UNIT - 1

1. How are objects implemented in Java?


2. Compare Java Runtime Environment (JRE) and Java Virtual Machine (JVM).
3. Distinguish between Procedural Oriented Programming and Object-Oriented Programming.
4. Explain in detail about arrays with syntax and example.
5. What do you mean by a constructor?
7. How many types of constructors are available in Java?
8. Explain constructors in Java with suitable examples.
9. List out the types of constructors in Java.
10. Explain the difference between JDK and JRE in Java.
11. Justify the statement: “Object is an instance of a class.”
12. What are the uses of the “this” keyword in Java? Explain with a proper example.
13. Explain the compilation and execution process of a Java program with a proper diagram.
14. Explain ten features of Java Programming Language.
15. What do you mean by Encapsulation? Explain with an example.

UNIT – 2

1. What are the limitations of static members?


2. What is the advantage of static class in Java?
3. Describe in detail about the types of inheritance in Java.
4. Which is the alternative approach to implement multiple inheritances in Java? Explain, with an example.
5. What is the role of class path in Java Package?
6. Write 3 uses of Encapsulation in Object Oriented Programming.
7. Explain the role of constructor and also explain how subclass constructor implicitly calls superclass constructor in
Java.
8. What do you mean by abstract class? How is abstract class different from Interface? What is data
Abstraction?
9. What do you understand by Polymorphism? Explain types of polymorphism with proper example.
10. What is Method Overloading and Method Overriding? Write a program for Method Overriding in Java.
11. What do you mean by Constructor Overloading? Give an example.
12. Write a program for Multi-level Inheritance.

UNIT – 3

1. Explain difference between throws and throw keyword in Java.


2. Draw hierarchical diagram of Java.io package.
3. Write Java program to copy one image to another.
4. Write Java program that accepts a temperature in Celsius. It should throw an Exception "Temperature
Below Normal" when the temperature is less than 20°C, throw an Exception "Normal Temperature"
when the temperature is above 20°C and below 40°C, and throw an Exception "Temperature is High"
when it is greater than 40°C.
5. Explain the use of BufferedReader and BufferedWriter classes with suitable example.
6. What is the meaning of "throwing an exception"? When does an exception throw?
7. By means of a diagram show the various streams found in the java.io package? Write a program to
demonstrate how to use a StreamTokenizer to count the number of words in a file.
8. What is the finally block?
9. What is the difference between Readers/Writers and Input/Output Streams? Give a few subclass of
Reader and Writer class.
10. What do you mean by exceptions? What is a checked and unchecked exception? Explain exception
chaining.
11. What is meant by Stream and what are the types of Streams and classes of the Streams?
12. What is an Exception and how is it handled in Java? When should a program throw an exception?
Describe with suitable example.
13. What is the meaning of "throwing an exception"? When does an exception throw?
14. When do we use multi-catch handlers? Explain with an example.
15. Explain about try-catch with example.
UNIT – 4

Short Questions 2 Marks


1 - Discuss Generic programming in java.
*2 - Define ServerSocket in java.
3 - Compare thread based and process based multitasking in java.
4 - Explain types of ways to create thread in Java.
5 - Explain generic programming concepts in Java.
6 - Differentiate usage of „Runnable‟ and „Thread‟ for Multithreading.

Long Questions 7 Marks


1 - Discuss Synchronizing threads and Daemon Threads.
2 - What is Open Data Base Connectivity (JDBC)? How it is used in java data base connectivity.
3 - What do you mean by generics in java? Explain advantage and disadvantage of genetic programming in java.
4- Write generic Java program that display sum if pass numeric data and merge text if pass string data.
5- Describe how inter- thread communication is takes place in java withthread life cycle diagram?
6- Discuss generic bounded class with the help of an suitable example.
7- What is thread? Explain life cycle of a thread with proper diagram
8- What is the difference between process based and thread-based Multitasking? Give the two ways by which a
thread can be created using Java. Write a short program to demonstrate the creation of a new thread by
extending the thread class.

UNIT – 5

1.What do you understand by event handling in Java? Give an example of any event like mouse event, keyboard
event and windows event.
2.Write short note on the following components:

(i) JLabel
(ii) JTextField
(iii) JTextArea
(iv) JList
(v) JPasswordField
3.What do you understand by Layout manager? Illustrate three types of layout available in Java with the help of
suitable syntax.
4.Write short notes on the following: (i) Toggle buttons (ii) Combo box (iii) Tabbed Panes (iv) Scroll Panes
5.Draw hierarchical diagram of Java Swing Classes.
6.What is the difference between JPanel and JFrame in Java Swing?
7.Explain difference between AWT and Swing with proper example.
8.Write Java Swing program that changes background color whenever user clicks on button and displays the
message "Welcome to Java Swing".
9.Determine event? How is event handling done in Java? Explain with an example. 10. Write a Java program to
display the month names by JList and display the Days by JComboBox.

You might also like