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 |
Why do we need hashset in java?
What are the application of stack?
when should you use stringbuilder class in a program?
What is a databasemetadata?
If all the methods in abstract class are declared as abstract then what is difference between abstract class and in interface?
What is a void return type?
Are floats faster than doubles?
What is meant by final class, methods and variables?
How does java enable high performance?
What is final int?
Why use string handling in Java?
What is the benefit of singleton pattern?