What are the two types of exceptions in java? Which are the differences between them?
Answer / Abhay Kumar Srivastava
There are two types of exceptions in Java: checked exceptions and unchecked exceptions. Checked exceptions (e.g., IOException, SQLException) must be declared in a method's throws clause or caught within the method, while unchecked exceptions (e.g., NullPointerException, RuntimeException) do not require a throws declaration.nnDifference: Checked exceptions represent programming errors that can occur during compile-time, while unchecked exceptions are runtime errors.
| Is This Answer Correct ? | 0 Yes | 0 No |
How garbage collection is done in java?
How will you reverse a link list without using recursion?
What is a reflection package?
How many functional interfaces does java 8 have?
What are different types of arrays?
How to access a variable if it is declared as private?
Is it possible to specify multiple jndi names when deploying an ejb?
What is pass by value?
What is the symbol for average?
How do you remove spaces in java?
Is a class subclass of itself?
what is mean by synchronization?
3 Answers BOB Technologies, GCPL,