What is the difference between throw and throws?
Answer Posted / surender kannuri
throws clause is used to whenever programmer doesn't want to
handle exception.throws it out of method.
throw is used whenever programmer wants to handle exception
explicitly by using catch blocks.
Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is data structure in java?
What is the purpose of interface?
Can we assign null to double in java?
Do you need to import math in java?
How does hashmap work in java ?
In java how do we copy objects?
What is a function easy definition?
What exactly is methodology?
What are namespaces in java?
What is synchronization and why is it important in java programming?
Can finally block be used without a catch?
Name four container classes.
What is unmodifiable collection in java?
What is passing value java?
When throw keyword is used?