OOP JAVA Unit 2 Notes AKTU (BCS403)
AKTU · BTECH · Semester 4 · Object Oriented Programming with Java · Unit 2 · Notes
AKTU Object Oriented Programming with Java (BCS403) Unit 2 notes for B.Tech Semester 4 – Exception Handling, Input Output and Multithreading. Topics…
Open the interactive reader to study this resource on AcademicArk.
Unit 2: Exception Handling, Input Output and Multithreading – AKTU syllabus topics
- Exception Handling: Types Checked Unchecked Exceptions, Try Catch Finally Throw Throws, User Defined Exceptions
- Input Output Basics: Byte and Character Streams, Reading and Writing Files
- Multithreading: Thread Life Cycle Creating Threads, Thread Synchronization Priorities, Inter Thread Communication
Most asked AKTU PYQ questions from Unit 2
- Q4a. 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, 2025-26)
- Q4b. Write a Java program to solve the Producer-Consumer problem using a shared buffer and methods - wait() and notify(). (7 marks, 2025-26)
- Q2b. Explain the concept of multithreading. Write a program to implement two threads printing numbers alternatively. (7 marks, 2024-25)
- Q4a. Write a Java program to handle multiple exceptions using try-catch-finally. (7 marks, 2024-25)
- Q4b. Write a Java program that creates two threads – one to print even numbers and the other for odd numbers. (7 marks, 2024-25)
- Q2b. Describe the ways to create the threads in Java with suitable code. Also explain which method is more suitable to create threads. (7 marks, 2023-24)
- Q4a. Differentiate between checked and unchecked exceptions in Java. Write a Java program to demonstrate Arithmetic Exception handlings. (7 marks, 2023-24)
- Q4b. Differentiate between with suitable examples: 1. Character streams and Byte Streams 2. wait() and notify() (7 marks, 2023-24)
- Q1c. List the five Exception Handling keywords. Can a try block exist without a catch or finally? (2 marks, 2025-26)
- Q1d. Define a Thread. What is the difference between extending Thread and implementing Runnable? (2 marks, 2025-26)
AKTU paper codes: BCS403
Other Object Oriented Programming with Java units
Object Oriented Programming with Java previous year papers
More Object Oriented Programming with Java resources
Browse all notes · Semester 4 notes · OOP with Java notes