What is the purpose of checked and unchecked exceptions in JAVA?
Answer Posted / Manisha Singh
Checked exceptions are those that a program can reasonably be expected to catch and handle appropriately, otherwise the program will not compile. Unchecked exceptions indicate programming errors or bugs within the code and do not need to be caught by the user. Examples of checked exceptions include IOException, SQLException, and ClassNotFoundException; examples of unchecked exceptions include NullPointerException, ArrayIndexOutOfBoundsException, and IllegalArgumentException.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is the difference between equals() and == in java?
Is minecraft 1.15 out?
What is the difference between break and continue statements?
How to create a base64 decoder in java8?
Explain public static void main(string args[]) in java.
What is a constructor overloading in java?
How to sort array in descending order in java?
Realized?
What is a classloader in java?
What are the differences between heap and stack memory in java?
What is an object in java and how is it created?
Write a program to find the whether a number is an Armstrong number or not?
Write a program to print count of empty strings in java 8?
What is java string pool?
What is parsing in java?