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 constant in programming?
What is a byte array?
Where are variables stored?
List methods available in Java Queue interface
why we are calling j2se why not j1se or j3se or j4se..etc is there any reason.. can u please explain it... i shocked in my interview when they asked this question please explain ans
what is difference between global methods and local methods?
What is an object’s lock and which object’s have locks?
Give differences between Quicksort &Mergesort. When should these sorts be used andwhat is their running time in java?
What is an abstract class?
Diff between C++ and java?
What is overriding in java?
when should you use stringbuilder class in a program?