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 request processor?
What is boolean keyword in java?
What is object data type?
What is floor math?
Can you override static method in java?
What is the use of a copy constructor?
Is it safe for adding 10,00,000 records/objects to HashMap?, i.e is it safe to add millions of objects to HashMap?
Difference between arraylist and vector.
Difference between static synchronization vs. Instance synchronization?
What is the default modifier in Interface?
why we write public static void main (String args[]) in core java plz explain briefly??????????????????
What is length in java?