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
Does google use java?
How can we create a thread in java?
Is it possible to instantiate the abstract class?
what are the states associated in the thread? : Java thread
How many threads does a core java have?
Why does java does not support multiple inheritance? Explain
Can a class be declared as protected?
what state does a thread enter when it terminates its processing? : Java thread
What does t in java mean?
Do you know why doesn't the java library use a randomized version of quicksort?
What are the different types of inner classes?
If we don’t want some of the fields not to serialize how to do that?
What is tcp ip in java?
What are different types of states exist for a thread?
How java is similar to c?