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
Can singleton class be inherited in java?
How many types of memory areas are allocated by jvm?
What is Classloader in Java?
How can you handle java exceptions?
Mention a package that is used for linked list class in java.
What is the super void?
How to make a read-only class in java?
What sorting algorithm does javascript use?
Explain the difference between protected and default access.
Difference between static binding and dynamic binding?
What is strings in java?
why would you use a synchronized block vs. Synchronized method? : Java thread
What is a numeric format?
What is the purpose of final keyword and when to use it?
Why does java have two ways to create child threads? Which way is better?