What is an Exception ?

Answer Posted / asit nautiyal

An exception is any error condition or unexpected behavior
encountered by an executing progarm othre than logic or
syntex errors.

The error conditions might include conditios such as
division by zero, access to an array to an array outside of
its bounds,etc.

To handle exception we use three statements :
1. try 2. catch 3.finally

Is This Answer Correct ?    7 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Differences between C and Java?

620


What is starvation?

684


What language is pass by reference?

574


How do you override a method in java?

537


What is a flag value?

520






What is difference between this and super keyword?

519


Explain numeric promotion?

598


What is the significance of continue jump statement? Explain with an example.

741


When should you make a function static?

544


What is meant by object oriented programming – oop?

543


What is the flag in java?

612


What are locale settings?

552


What is the difference between @before and @beforeclass annotation?

538


What all access modifiers are allowed for top class ?

713


What is jit compiler ?

578