what is difference between throw and throws in exception?
Answer Posted / pavithra
throws is used to throw an exception from the method
without handling that exception where as 'throw' is used
to throw the exception to catch block and handle it.
| Is This Answer Correct ? | 123 Yes | 79 No |
Post New Answer View All Answers
What is generics in java interview questions?
How do you sort in descending order in java using collections sort?
What is the default value of local and global variables?
How to avoid memory leak in java?
What is a void method java?
What are internal variables?
What is unicode used for?
What is a null check?
What do you mean by mnemonics?
What is java volatile?
Which is easier .net or java?
Write a program to find the greatest of three numbers in java?
What is difference between hashset and hashmap in java?
What are 3 data types?
Is singleton class immutable?