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
- 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. What is the purpose of the finally block in Java exception handling? (2 marks, 2024-25)
- Q1d. How is throw different from throws? (2 marks, 2024-25)
- Q1d. Describe all the keywords used for exception handling in Java. (2 marks, 2023-24)
- Q1e. Describe various states achieved by the thread in its life cycle. (2 marks, 2023-24)
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