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 |
Explain numeric promotion?
What does pointer mean?
What defines function?
What is the console in java?
What is function and its uses?
can java object be locked down for exclusive use by a given thread? Or what happens when a thread cannot acquire a lock on an object? : Java thread
What is difference between hashset and hashmap in java?
How to use scanner in java?
Why transient variables wont participate in serialization?
What is the reason behind using constructors and destructors?
What is the access scope of protected access specifier?
how to create multithreaded program? Explain different ways of using thread? When a thread is created and started, what is its initial state? : Java thread