What is an Exception ?

Answer Posted / ramanareddy333

An Exception is logical error.An exception is an event,
which occurs during the execution of a program, that
disrupts the normal flow of the program's instructions.
when an exception is occur the program is teriminated
suddenly. using Try , Catch,finally block to avoid the
exception

Is This Answer Correct ?    23 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How we can make copy of a java object?

653


What is sortedmap interface?

556


When does a class need a virtual destructor?

530


Which collection allows duplicate values in java?

546


What happens if a constructor is declared private?

537






What is meant by inheritance and what are its advantages?

580


What is java lang object?

529


Variable of the boolean type is automatically initialized as?

593


What happens when a thread cannot acquire a lock on an object in java programming?

549


According to java operator precedence, which operator is considered to be with highest precedence?

603


What is the default size of load factor in hashing based collection?

563


What is an example of character?

554


Is .net better than java?

555


What is the function of static in java?

541


Can a class be a super class and a sub-class at the same time? Give example.

800