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

What is the advantage of OOP in java?

896


What is a buffer in java?

800


Is arraylist ordered in java?

788


How java uses the string and stringbuffer classes?

755


What is an object in java and how is it created?

844


What is the difference between method overriding and overloading?

845


How do you convert int to char in java?

836


What are the parts of methodology?

757


What is this () in java?

769


What is gc()?

760


What are heterogeneous objects?

811


I want to re-reach and use an object once it has been garbage collected. How it's possible?

785


Is it possible to cast an int value into a byte variable? What would happen if the value of int is larger than byte?

746


What is the escape character in java?

741


What is the final keyword?

767