what is the Use of throws exception?
Answers were Sorted based on User's Feedback
Answer / ravikiran(aptech mumbai)
throws is used to throw the exception to it's calling method
| Is This Answer Correct ? | 14 Yes | 3 No |
it is used to throw the list of exceptions that a method
has to throw.
Syntax:
returntype methodname(list of args)throws
exception1,exception2{
body
}
| Is This Answer Correct ? | 15 Yes | 6 No |
Difference difference paint() and paintcomponent()?
What is skeleton and stub? What is the purpose of those?
What are the advantages of the model over the event- inheritance model?
What is dot operator?
How to disable caching on back button of the browser?
write a progam hashmap & hashtable?
Explain the difference between string, stringbuffer and stringbuilder in java?
What is the base class of all classes?
"We cannot create an object of interface but we can create a variable of it". Discuss the statement with the help of an example. (Plz help us to provide immediately.)
How can we make string upper case or lower case?
What is 32 bit float?
What does the string method compareto () do?