what is difference between throw and throws in exception?
Answer Posted / velayutham
throw- means user defined exception. we want throw manually
throw the exception.
throws- means jvm going to take all exception.
| Is This Answer Correct ? | 33 Yes | 10 No |
Post New Answer View All Answers
Explain when classnotfoundexception will be raised ?
What does it mean that a class or member is final?
Can two objects have same hashcode?
What is the difference between logical data independence and physical data independence?
Is overriding possible in java?
Can java program run without jre?
What is the difference between JDK and JVM?
Objects or references which of them gets garbage collected?
What is the point of polymorphism java?
What is a boolean in java?
What are thread local variables?
What is the structure of java?
Write a function to find out longest palindrome in a given string?
Does constructor return any value?
What is tcp ip in java?