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 anagram word?

527


What is a native method in java programming?

536


What is meant by structural programming?

558


How many arguments can be passed to main ()?

530


Can we define package statement after import statement in java?

569






Explain the difference between the public, private, final, protected, and default modifiers?

559


Name few java.lang classes introduced with java 8 ?

548


Why is the type for real numbers called double?

551


What about instanceof operator in java?

607


What is enhanced loop in java?

557


What is the meaning of nullable?

580


Is the milky way in a void?

549


Explain the difference between map and flatmap stream operation?

825


Why set do not allow duplicates in java?

591


what is thread? : Java thread

561