what is difference between throw and throws in exception?
Answer Posted / ravikumar
Throws - what ever the exception you are declaring are
taken care by JVM. If it is a user defined exception in throws
block, JVM doesn't know when to throw that exception . For
this purpose we use Throw for a certain conditions/logic to
throw these user defined exceptions
| Is This Answer Correct ? | 0 Yes | 1 No |
Post New Answer View All Answers
What is object cloning in Java?
What is 32 bit float?
What is sorting algorithm in java?
What is the use of parseint in java?
Is sizeof a keyword in java programming?
Objects or references which of them gets garbage collected?
Why is stringbuffer called mutable?
What's the purpose of using break in each case of switch statement?
What is difference between final and finally in java?
Which is fastest collection in java?
What are Normalization Rules? Define Normalization?
What is the best definition for data?
How many JVMs can run on a single machine and what is the Just-In-Time(JIT) compiler?
Which class should you use to obtain design information about an object in java programming?
Is nullpointerexception checked or unchecked?