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


Please Help Members By Posting Answers For Below Questions

What are the important methods of java exception class?

576


How do you start a thread?

553


which one is more efficient int x; 1. if(x==null) 2.if(null==x) state which one either 1 or 2?

9245


what is mutual exclusion? : Java thread

557


Why is it called a string?

569






What is class forname?

548


Explain about OOPS concepts and fundamentals.

597


Can we overload the main() method?

555


When is the garbage collection used in Java?

658


Does printwriter create a file?

544


What is difference between adapter class and listener?

503


Is array a class?

523


What data structures are used to perform recursion?

608


What is the difference between class & object?

558


What is the hashcode () and equals () used for?

538