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
What is the difference between int and integer in java?
What is stored procedure. How do you create stored procedure ?
Detail discussions on JVM, memory management and garbage collector.
How do weakhashmap works?
Which is fastest collection in java?
What is an interface in java?
Does isempty check for null?
Explain the difference between abstract classes and interfaces in java?
Which number is denoted by leading zero in java?
What is final keyword?
What are keywords in java?
What is the maximum size of byte array in java?
Can you give names of Container classes?
Is java an open source?
How many types of the indexof method are there for strings?