OOP Using Java •
PYQ • Object Oriented Programming Using Java
Previous Year Question - University Exam
UNIT 1: OOP Concepts and Java Programming
1. Explain History and Features of Java
2. Write short notes on Java Buzzwords
3. Differentiate between POP and OOP
4. Explain Need of OOP Paradigm
5. Explain OOP Features with examples
6. Write advantages of OOP
7. Differentiate between JDK, JRE and JVM
8. Explain Java program compilation and execution with diagram
9. Explain primitive data types in Java
10. Explain variables and operators in Java
11. Explain control statements with examples
12. Difference between Type Conversion and Type Casting
13. Explain methods in Java with syntax
14. Write a simple Java program and explain execution
15. Explain command line arguments in Java
UNIT 2: Objects, Classes and Constructors
1. Define Class and Object with example
2. Justify: Object is an instance of class
3. Explain constructors in Java with example
4. Types of constructors in Java
5. Constructor overloading with example
6. Method overloading with example
7. Method overriding with example
8. Explain method binding
9. Explain static members in Java
10. What are limitations of static members?
11. Explain uses of this keyword
12. Explain access modifiers in Java
13. Explain garbage collection in Java
14. Explain finalize() method
15. Write short note on Nested and Inner Classes
16. Explain String class in Java
17. Passing object as parameter and returning object
UNIT 3: Inheritance, Interface and Packages
1. Explain inheritance and its types
2. Benefits of inheritance
3. Explain superclass and subclass
4. Explain super keyword with example
5. Explain final class and final method
6. Explain Object class and its methods
7. What is polymorphism? Explain its types
8. Difference between Method Overloading and Overriding
9. Explain Dynamic Method Dispatch
10. Explain Abstract class and Abstract method
11. Difference between Abstract Class and Interface
12. Explain interface with suitable example
13. How Java achieves multiple inheritance using interface
14. Explain interface reference
15. Explain package creation and accessing
16. What is CLASSPATH? Explain its role
17. Explain importing packages
UNIT 4: Exception Handling
1. What is Exception? Explain types of exceptions
2. Difference between Error and Exception
3. Checked vs Unchecked Exception
4. Explain Exception Hierarchy
5. Explain try-catch-finally with example
6. Difference between throw and throws
7. Explain multiple catch block
8. Explain nested try block
9. Explain rethrowing exception
10. What is finally block?
11. Explain user-defined exception
12. Create own exception subclass
13. Explain ArithmeticException and NullPointerException
14. Explain exception chaining
15. Explain benefits of exception handling
UNIT 5: Multithreading
1. What is Multithreading?
2. Difference between Process and Thread
3. Thread-based vs Process-based multitasking
4. Explain Thread Life Cycle with diagram
5. Different ways to create thread in Java
6. Difference between Thread class and Runnable interface
7. Explain start() and run() methods
8. Explain thread priorities
9. Explain interrupting threads
10. Explain synchronization in Java
11. Explain synchronized keyword
12. Explain race condition
13. Explain inter-thread communication
14. Explain wait(), notify(), notifyAll()
15. Explain daemon thread
16. Explain join(), sleep(), yield() methods
UNIT 6: Files, Collections Framework and JDBC
1. Explain Streams in Java
2. Difference between Byte Stream and Character Stream
3. Explain FileInputStream and FileOutputStream
4. Explain FileReader and FileWriter
5. Explain BufferedReader and BufferedWriter
6. Explain RandomAccessFile
7. Explain File class in Java
8. Overview of Collection Framework
9. Explain hierarchy of Collection Framework
10. Difference between ArrayList and LinkedList
11. Difference between HashSet and TreeSet
12. Explain PriorityQueue and ArrayDeque
13. JDBC architecture
14. Explain database connection using JDBC
15. Explain Statement and PreparedStatement
16. Explain ResultSet in JDBC
17. Difference between executeQuery() and executeUpdate()
18. Write steps to connect Java with Database
Google AdSense Ad Placement Here 📢