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 |
How do you access command-line arguments within the code?
0 Answers Flextronics, Hexaware,
What is a byte string?
What do you understand by the term polymorphism?
Write a program for recursive Traverse?
how can u apply shallow cloning and deep cloning to create object?
Is zero a positive integer?
What is the purpose of garbage collection in java, and when is it used?
what are abstract functions?
What are the two types of exceptions in java? Which are the differences between them?
What are parsers? Dom vs sax parser.
What are different types of Exceptions?.
finalize() method?