When does Exception occurs?
Answers were Sorted based on User's Feedback
Answer / shakir khan
Exception is a condition that occur because of bad input
etc.
For example
FileNotFoundException will takesplace if the specified file
does not exist.
NullPointerException will be thrown if you try using a null
reference.
In most of the cases it is possible to recover from an
exception.
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / vikneswarank
any upnormal condication occur in try block .
| Is This Answer Correct ? | 0 Yes | 0 No |
HOW TO PRINT A NO IN WORDS USING WHILE LOOP THE NO WILL BE PRINTED WHEN IT WILL BE IN THE RANGE BETWEEN 1 AND 3?
What is a local class in java?
What is collections framework?
What are assertions in java?
How do you write a scanner class in java?
How do you format in java?
What is a type parameter in java?
What is difference between static class and singleton pattern?
What is an object in Java and what are its benefits?
What happens when a main method is declared as private?
22 Answers DELL, Infosys, L&T, Sun Microsystems,
What are thread local variables?
What is a double vs float?