What is the purpose of checked and unchecked exceptions in JAVA?
Answer / 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 |
what is polymorphism?
What is binary search in java?
Explain about the select method with an example?
What is clipping and repainting and what is the relation between them?
What do you mean by light weight and heavy weight components?
What is high level language in computer?
What is an abstract class?
How java is platform independent?
41 Answers College School Exams Tests, Infosys, TCS,
What is the size of int in 64-bit jvm?
What does file separator do in java?
How list contains works in java?
Why stringbuilder is not thread safe in java?