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
How do you clear a method in java?
What defines function?
What does .equals do in java?
How do you convert bytes to character in java?
what is aggregation in java?
How do you sort in descending order in java using collections sort?
Compare Mutex and Semaphore in java.
How is hashcode calculated in java?
What are the states of thread in java?
How to perform merge sort in java?
what is the difference between future and callable interface in java?
What is the requirement of thread in java?
What are thread groups?
What is unmodifiable list in java?
Are arrays static in java?