what is difference between throw and throws in exception?
Answer Posted / krishna
Throws is a keyword.This is used to say explicitly this
method has doughtful body,where as Throw is used to handle
the exception in next level or itself..............
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is a generic code?
What is runtime locatable code?
Explain the selection sort algorithm and state its time complexity?
Explain abstract class in java?
What is the difference between a synchronized method and a synchronized block?
What is procedure overloading?
What is the main difference between java platform and other platforms?
Can constructor be protected in java?
What is an example of character?
What is a variable declaration?
How many return statement are allowed in a function?
Will the jvm load the package twice at runtime?
What happens when heap memory is full?
Which is the best sorting technique in java?
What is java object name?