Chapter Study

BCA Semester 3 OOP in JavaUnit 5: Handling Error/Exceptions (2Hrs)

Comprehensive questions and detailed answers for Unit 5: Handling Error/Exceptions (2Hrs). Perfect for exam preparation and concept clarity.

6
Questions
35
Marks
Back to All Chapters

Why it is important to handle exception in java? Write a program to illustrate the use of exception handling.

MediumTHEORY5 marks2019(TU FOHSS Final)

Define exception. Explain exception handling mechanism in java with example.

MediumTHEORY5 marks2020(TU FOHSS Final)

Defined exception. How exceptions are handled in java? Explain with a proper example.

MediumTHEORY5 marks2021(TU FOHSS Final)

What are exception handling keyword in java? Write java program to illustrate the conceptof NullPointerException and NumberFormatException.

MediumTHEORY5 marks2022(TU FOHSS Final)

a) What is difference between checked and unchecked exception? Write a java program that willread college name from keyboard and display it on screen. The program should throw an exception when length of college name is more than 50.
b) What are methods used for inter-thread communication? Write a java program to create twothreads so that one thread prints even number and other thread prints odd number between 100 and 200.

MediumTHEORY10 marks2023(TU FOHSS Final)

How to handle multiple catch blocks for a nested try block? Explain with an example.

MediumTHEORY5 marks2024(TU FOHSS Final)
Showing 6 questions

Sample Questions

Why it is important to handle exception in java? Write a program to illustrate the use of exception handling.

Marks: 5Chapter: Unit 5: Handling Error/Exceptions (2Hrs)

Define exception. Explain exception handling mechanism in java with example.

Marks: 5Chapter: Unit 5: Handling Error/Exceptions (2Hrs)

Defined exception. How exceptions are handled in java? Explain with a proper example.

Marks: 5Chapter: Unit 5: Handling Error/Exceptions (2Hrs)

What are exception handling keyword in java? Write java program to illustrate the conceptof NullPointerException and NumberFormatException.

Marks: 5Chapter: Unit 5: Handling Error/Exceptions (2Hrs)

a) What is difference between checked and unchecked exception? Write a java program that willread college name from keyboard and display it on screen. The program should throw an exception when length

Marks: 10Chapter: Unit 5: Handling Error/Exceptions (2Hrs)

And more questions available on this page.

Unit 5: Handling Error/Exceptions (2Hrs) chapter questions with answers for OOP in Java (BCA Semester 3). Prepare for TU exams with our comprehensive question bank and model answers.