What is meant by throwing an Exception?

Answer Posted / jagadeesh

throwing the exception is nothing but collect all the error
releated info into the single and throw that objet into the
caller area

it contains all exception releated info
And most importantly it is the responsibility of the caller
to handle the exception by using try , catch blocks

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is string buffer?

498


Is sizeof a preprocessor?

534


Which is a valid identifier?

533


How do singleton patterns work?

509


List down the methods and interfaces of collection class in java.

533






Explain about procedural programming language or structured programming language and its features?

540


What is use of set in java?

483


How many types of operators are there?

511


What is the use of hashmap in java?

543


What is a final class in java?

537


Can we create our own wrapper class in java?

535


Difference between ‘is-a’ and ‘has-a’ relationship in java?

532


What an i/o filter in java programming?

592


Is list thread safe in java?

480


What are peerless components in java programming?

573