When does Exception occurs?

Answers were Sorted based on User's Feedback



When does Exception occurs?..

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

When does Exception occurs?..

Answer / ravikiran

at runtime when any uneven situation occurs

Is This Answer Correct ?    0 Yes 0 No

When does Exception occurs?..

Answer / vikneswarank

any upnormal condication occur in try block .

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Core Java Interview Questions

What is the difference between array and arraylist? what is the difference between arraylist and linkedlist?

8 Answers   EDS, Matrix,


Does anyone still use java?

0 Answers  


what is web.xml?and its use?

7 Answers   CTS,


What is the argument type of main() method?

2 Answers  


Is a method a procedure?

0 Answers  


What is string builder in java?

0 Answers  


where u use Abstraction and Interface in real time

3 Answers   Sonata,


public class Test { public static void main(String ar[]) { Integer a = 10; Integer b =10; Integer c = 145; Integer d = 145; System.out.println(a==b); System.out.println(c==d); } }

7 Answers   iGate,


How do I get the | symbol on my keyboard?

0 Answers  


What is enhanced loop in java?

0 Answers  


WHAT IS THE MEANING OF ALL TYPE OF BUZZWORDS?

4 Answers  


Can we use String with switch case?

0 Answers  


Categories