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 |
What is re-factoring in software?
How does remove work in java?
What is use of valueof () in java?
What is the purpose of checked and unchecked exceptions in JAVA?
Are nested try statements are possible?
can you program for reverse string?
What is a modifier?
How to use arraylist in java netbeans?
What is private static in java?
What is the benefit of inner / nested classes ?
What is use of static in java?
Should you use singleton pattern?