What is meant by throwing an Exception?

Answers were Sorted based on User's Feedback



What is meant by throwing an Exception?..

Answer / tejas.n.gowda

the act of passing an Exception Object to the runtime system
is called Throwing an Exception..

Is This Answer Correct ?    7 Yes 0 No

What is meant by throwing an Exception?..

Answer / 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

What is meant by throwing an Exception?..

Answer / ravikiran

throwing the exception to the calling method without
handing there

Is This Answer Correct ?    2 Yes 3 No

What is meant by throwing an Exception?..

Answer / akbar

Throwing exception means preventing the code from
exceptiion handling mechanism so that at Runtime system
throwing exception.

Is This Answer Correct ?    0 Yes 1 No

Post New Answer

More Core Java Interview Questions

Can we override private method?

0 Answers  


Can an interface extend another interface?

0 Answers  


how to create multithreaded program? Explain different ways of using thread? When a thread is created and started, what is its initial state? : Java thread

0 Answers  


Can we change the scope of the overridden method in the subclass?

0 Answers  


What is jagged array in java?

0 Answers  






why should we get the following error ? Exception in main method NoClassDefFoundError:classname could anyone give the detail clarification on how java compiler can look for .class file?

2 Answers  


What is the difference between final, finally and finalize()?

0 Answers  


Why to use nested classes in java? (Or) what is the purpose of nested class in java?

0 Answers  


How 'java' got its name and what it stands for?

11 Answers   Wipro,


explain about jre and jvm

2 Answers  


The class "Class" is belongs to which package?? a) java.lang b)java.lang.reflect c)java.util d)None

4 Answers  


What is "this" keyword in java? Explain

0 Answers  


Categories