Answer Posted / shanthini
The keyword 'throws' should be used only with the methods while the keyword 'throw'is a clause...
Throws is actually a declaration of any methods and Throw is used to handle the exceptions...
Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
Can we overload run() method in java?
Can we access the non-final local variable, inside the local inner class?
What is boolean strategy?
What is a parameter in matrices?
What is module in project?
How does compareto work in java?
Which object oriented concept is achieved by using overloading and overriding?
What are variable arguments or varargs?
What is skeleton and stub?
In multi-threading how can we ensure that a resource isn't used by multiple threads simultaneously?
What is the final method?
What are the methods to rectify ambiguities in the interfaces in JAVA?
Can we convert integer to string in java?
What does it mean to flush a file?
Explain about arraylist?