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 enhanced loop in java?

739


What is qualitative variable?

728


How do you escape in java?

806


What is tree in java?

672


What is method overloading with type promotion?

920


How to sort an array from smallest to largest java?

777


What is a databasemetadata?

725


What technique is carried out to find out if a particular string is empty?

784


What happens when a thrown exception is not handled?

775


What does @override mean?

778


What are the advantages of user defined functions?

751


String class is defined under which package in java?

815


What is the difference between hashmap and hashtable? What is an interface?

780


Why volatile is used in java?

750


What do you know about java?

719