100 days of interview questions (11 Part Series)
1 100 days of interview questions series!
2 Day 1 – What is hoisting and how to prevent it in javascript?
… 7 more parts…
3 Day 2 – Differences between checked & unchecked exceptions in java!
4 Day 3 – What are fragments in React?
5 Day 4 -Difference between slice() and splice() in javascript!
6 Day 5 – Why is java not a Pure Object-Oriented language?
7 Day-6 – Is javascript pass by value or pass by reference?
8 Day 7- Is Java pass by value or reference?
9 Day 8- Undefined, Not defined & null in javascript
10 Day 9 – What is ref in react?
11 Day 10 – How is abstraction achieved in java?
Checked Exceptions
These are checked during compile time itself. Checked Exceptions should be either handled or the same should be notified with the throws keyword.
Example – SQLException, IOException.
Unchecked Exceptions
These exceptions are checked during runtime. The classes that inherit the RuntimeException fall under unchecked exceptions. It’s not necessary to handle these exceptions.
Example – NullPointerException, ArrayIndexOutOfBoundsException.
原文链接:Day 2 – Differences between checked & unchecked exceptions in java!
暂无评论内容