What is the difference between throw and throws?
Answer Posted / swapna kumari arava
By Using throw , we can create our own exceptions or user
defined exceptions and we can thorw , where as throws
defines the list of exceptions to be thown by the method.
| Is This Answer Correct ? | 16 Yes | 4 No |
Post New Answer View All Answers
Can java inner class be static?
How does varargs work in java?
How do you remove duplicates from an array in java?
What is variable length arguments in java?
What is the type of lambda expression?
Does java set allow duplicates?
Define max and min heap, also the search time of heap.
What are methods?
how to prepare for IT Officers Interview in Banks
What is diamond operator in java?
What is the mapping mechanism used by java to identify IDL language?
What is the meaning of flag day?
how to handle exceptions in ejb?
What is array size in java?
What is flag in java?