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 |
What is singleton class?
16 Answers 3i Infotech, 7 Seas, ABC, Amdocs, Cap Gemini, Oracle, Persistent, TCS, Techforza,
What is meant by object?
why we r not use pointers in corejava?
which methods consisting of the serilizable interface?
What is treeset and treemap in java?
Is array primitive data type in java?
Can we override static methods?
18 Answers Bally Technologies,
Why is java so popular?
is there a separate stack for each thread in java? : Java thread
What are thread priorities and importance of thread priorities in java?
What is stringreader?
What is the order of method invocation in an Applet?