What is the difference between throw and throws?
Answer Posted / kashi
thow is used to explicitly transfer the userdefined
exception class object from the function to the calling
place.
thows is used to mention or indicate to the compiler as
well as the enduser, that a particular function is proven
to generate exception class object and those objects are
not handled in the function itself.
| Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
Explain the different forms of polymorphism?
How many bits are in a sentence?
What is difference between null and void?
What is function declaration?
Difference between comparator and comparable in java?
How many bits is a boolean?
What is variable explain?
What is the different between get and post?
How do you remove all elements from an arraylist in java?
What is user defined exception in Java?
What is the purpose of finalization in java programming?
Differentiate between stringbuffer and stringbuilder in java.
What is string variable?
What is sleep method?
What happens to a static var that is defined within a method of a class?