what is difference between throw and throws in exception?
Answer Posted / savita patil
throw is used for to through exception system explicitly,and
throws is u sed for to throws exception means throws
ioexception and servletexception and etc.........
Is This Answer Correct ? | 3 Yes | 1 No |
Post New Answer View All Answers
What are the important methods of java exception class?
How do you start a thread?
which one is more efficient int x; 1. if(x==null) 2.if(null==x) state which one either 1 or 2?
what is mutual exclusion? : Java thread
Why is it called a string?
What is class forname?
Explain about OOPS concepts and fundamentals.
Can we overload the main() method?
When is the garbage collection used in Java?
Does printwriter create a file?
What is difference between adapter class and listener?
Is array a class?
What data structures are used to perform recursion?
What is the difference between class & object?
What is the hashcode () and equals () used for?