- World's Largest Collection of Interview Questions
Start Your Own website Now
Sponsored Links

Interview Questions
Our Services

Get 9,000 Interview Questions & Answers in an eBook.

  • 9500+ Pages
  • 9000 Question & Answers
  • All Tech. Categories
  • 14 MB Content

    Get it now !!

    Send your Resume to 6000 Companies

    Question :
    What are the advantages of using exception handling?
    Category Core Java Interview Questions
    Rating (0.3) By 2256 users
    Added on 9/23/2009
    Views 1861
    Rate it!

    Exception handling provides the following advantages over "traditional" error management techniques:

    * Separating Error Handling Code from "Regular" Code.
    * Propagating Errors Up the Call Stack.
    * Grouping Error Types and Error Differentiation.

    exception Handling mechanism is used to execute the program even though errors are existing in also used to show the non technical messages on the screen.these non technical messages are very useful to non technical peoples also

    Posted by: siva vulli    

    Contact siva vulli Contact siva vulli

    it is like filtering all the errors apart into the section where exception is being implemented and more shortly ,the errors which are existing which are responsible for the program not to be run is put in the exception handling part

    Posted by: Divya Arunachalam    

    Contact Divya Arunachalam Contact Divya Arunachalam

    Exception causes abnormal termination of currently executing program.
    so exception handling helps u from abnormal termination of program by handling the exception using the keywords throw,throws,try,catch n finally. By using exception handling we may know what n where is the exception occured.if we know tat the any code in the prgrm may generate exception then put tat block of code in try block n put the code what we have to do if that exception occurs in catch block so that we r providing the solution readily for the exception occured in the prgm itself without terminating the prgm

    Posted by: Akhilesh Nag    

    Contact Akhilesh Nag Contact Akhilesh Nag

    In java, Exceptional Handling is a very good technique to handle run time errors in the program , we will avoid the abnormal termination of the program and it will help us to display messages for the end-users about the behavior of the program . java provides try catch blocks to handle errors .

    Posted by: Md Sirajuddin    

    Contact Md Sirajuddin Contact Md Sirajuddin

    Exception handling is used to handle the exceptions ,which are caused abnormal termination of the program,
    in java we can handle these exceptions by the mechanism called Exception Handling,
    In Java we can Handle the exceptions by the following keywords

    Posted by: lukky    

    Contact lukky Contact lukky

    Exception Handling is a power full machenism introduced by java to handle the exception which occured during run time.for the handling exception java provides programmers to five keyword like throw,throws,try,catch and finally.An exception can handle by java run-time interpreator as well as A programmer.if a java run-time Interpreater handles An exception then it throw only a particular massage regarding of that Exception.but if a programmer handles the exception then they can throw message regarding that exception as well as they can continue that program after catching that particular exception.

    Posted by: sonu kumar    

    Contact sonu kumar Contact sonu kumar

    Exception Handling is one of the greatest feature in java api.It is handling the occur Exception to giving the User to Understand message.

    Posted by: suneel kumar    

    Contact suneel kumar Contact suneel kumar

    Exception is Obnormal situation or unexcepected situation in the normal exution flow will be disturbed.A run time error which is possible to handle called Exception
    Because of the exception normal execution of the program will be terminated but we handle the programme and continue the next portion of the programme is called as Exception Handling

    Posted by: ramanireddy    

    Contact ramanireddy Contact ramanireddy

    EXECPTION handling is the best technic to remove unwanted error.

    Posted by: BHUPENDRA    


    Exception indecates the abnormal behaviour of a program, it can happen because of invalid data or because of wrong logic in the program. To indecate this unwanted situation to the user java developer can throw exceptions and handle them properly and display the non technical message to end user.

    Exception handling in Java is both throwing and catching/handling the exceptions. Exceptions can be user defined exceptions or exception classes provided by Java.

    Posted by: Venu    

    Contact Venu Contact Venu

    If you have the better answer, then send it to us. We will display your answer after the approval.
    Rules to Post Answers in

  • There should not be any Spelling Mistakes.
  • There should not be any Gramatical Errors.
  • Answers must not contain any bad words.
  • Answers should not be the repeat of same answer, already approved.
  • Answer should be complete in itself.
  • Name :*
    Email Id :*
    Answer :*
    Verification Code Code Image - Please contact webmaster if you have problems seeing this image code Not readable? Load New Code
    Process Verification  Enter the above shown code:*
    Inform me about updated answers to this question

    Related Questions
    View Answer
    Which is superclass of Exception?
    View Answer
    What is error?
    View Answer
    What is an exception?
    View Answer
    What are static methods?
    View Answer
    What is the difference between static and non-static variables?
    View Answer
    What are static variables?
    View Answer
    What is static block?
    View Answer
    What are the uses of final method?
    View Answer
    What is final modifier?
    View Answer
    What are Access Specifiers available in Java?
    View Answer
    What are Access Specifiers?
    View Answer
    How are this() and super() used with constructors?
    View Answer
    What are the differences between Class Methods and Instance Methods?
    View Answer
    How are this() and super() used with constructors?
    View Answer
    What are the differences between Contructors and Methods?
    View Answer
    Can constructor be inherited?
    View Answer
    How does the Java default constructor be provided?
    View Answer
    What is Constructor?
    View Answer
    Can there be an abstract class with no abstract methods in it?
    View Answer
    When you declare a method as abstract, can other nonabstract methods access it?
    View Answer

    Please Note: We keep on updating better answers to this site. In case you are looking for Jobs, Pls Click Here - Best Freshers & Experienced Jobs Website.

    View ALL Core Java Interview Questions

    User Options
    Sponsored Links

    Copyright ©2003-2015, All Rights Reserved.
    Privacy Policy | Terms and Conditions

    Download Yahoo Messenger | Placement Papers| FREE SMS | ASP .Net Tutorial | Web Hosting | Dedicated Servers | C Interview Questions & Answers

    Testing Articles | Testing Books | Testing Certifications | Testing FAQs | Testing Downloads | Testing Interview Questions | Testing Jobs | Testing Training Institutes

    Cache = 0 Seconds