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
What is methodological framework?
Write a program to check for a prime number in java?
Why is the main method static?
What is difference between core java and java ee?
Which is bigger float or double?
What is thread count in java?
Is final static java?
What is difference between hashset and hashmap in java?
What does file separator do in java?
What do you understand by overloading and overriding in java?
What is the difference between equals() and == in java?
Is string a class in java?
What is the difference between error and an exception?
What is the string function?
what is the purpose of using rmisecuritymanager in rmi?