When does Exception occurs?

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


Please Help Members By Posting Answers For Below Questions

What are the skills required for core java?

632


What is a lightweight component?

679


what is thread in Java ?

720


Explain the significance of class loaders in bootstrap?

603


Java Compiler is stored in JDK, JRE or JVM?

1139






How to use string tokenizer class.

713


Give a practical example of singleton class usage?

672


Explain creating threads by extending thread class ?

650


Is call by reference possible in java?

630


How arrays are stored in memory in java?

598


What is an 8 bit word?

690


How do you represent a space in regex java?

609


What is difference between static class and normal class?

629


Define immutable object?

680


Explain about narrowing conversion in java?

657