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 |
Explain a few methods of overloading best practices in java?
What do you mean by boolean?
How do you get the length of a string in java?
Why is java not 100% pure oops?
What is the purpose of default constructor?
How to avoid the runtime exception ?
How many characters is 2 bytes?
What is a stack class in java ?
0 Answers Akamai Technologies,
What is meant by Java ?
What is variable and rules of variable?
What is array list in java?
Can a private method be declared as static?