Answer Posted / 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 |
Post New Answer View All Answers
Compare java and python.
Suppose if we have variable ' I ' in run method, if I can create one or more thread each thread will occupy a separate copy or same variable will be shared?
What is the difference between compiler and jvm?
Which sorting is best in java?
How do you make a thread in java?
What is bytecode in java ?
What are the important methods of java exception class?
What is nan inf?
What is empty string literal in java?
How many bits is a string in java?
What is space character in java?
Explain numeric promotion?
What is void data type?
Can a class be declared as static?
Is string pool garbage collected?