Object Oriented Programming with Java Unit 2 – Exception Handling, Input Output and Multithreading: important questions for AKTU
Unit 2 (Exception Handling, Input Output and Multithreading) questions that AKTU repeats most often. This unit carries about 25 marks per paper. Start with the repeated questions, then the most asked topics.
Most repeated Unit 2 questions
- Create a Custom Exception class named InvalidPasswordException. Write a program that throws this exception if a user's password is less than 8 characters long. (7 marks, 2026, Exception Handling) – also asked in 2024, 2025
- Write a Java program to solve the Producer-Consumer problem using a shared buffer and methods - wait() and notify(). (7 marks, 2026, Multithreading) – also asked in 2024, 2025
- Explain the concept of multithreading. Write a program to implement two threads printing numbers alternatively. (7 marks, 2025, Multithreading) – also asked in 2024, 2026
Most important Unit 2 topic
- Multithreading (Unit 2: Exception Handling, Input Output and Multithreading) – asked 6 times in 2024, 2025, 2026
- Exception Handling (Unit 2: Exception Handling, Input Output and Multithreading) – asked 7 times in 2024, 2025, 2026
- Input Output Basics (Unit 2: Exception Handling, Input Output and Multithreading) – asked 2 times in 2024, 2026
Most asked Unit 2 topics
- Exception Handling – asked 7 times
- Multithreading – asked 6 times
- Input Output Basics – asked 2 times
More Unit 2 previous year questions
- List the five Exception Handling keywords. Can a try block exist without a catch or finally? (2 marks, 2026, Exception Handling)
- Define a Thread. What is the difference between extending Thread and implementing Runnable? (2 marks, 2026, Multithreading)
- Explain the difference between Byte Streams and Character Streams. Describe the classes used to read and write a simple text file. (7 marks, 2026, Input Output Basics)
- What is the purpose of the finally block in Java exception handling? (2 marks, 2025, Exception Handling)
- How is throw different from throws? (2 marks, 2025, Exception Handling)
Unit 2 syllabus topics
- Exception Handling
- Input Output Basics
- Multithreading