what is difference between throw and throws in exception?

Answer Posted / srinath

throws keyword is used 2 delegate the responsibility of
exception handling 2 caller method where as throw keyword
used 2 hand over the creted customised excetion object 2
jvm 2 handle the excepion.

Is This Answer Correct ?    33 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why set is used in java?

573


What is object of class in java?

601


which is advanced deep technology in java launched by the sun microsystem??? The answer is very logical If u need correct answer mail me at priya_gupta@gmail.com

3197


What is Applet Stub Interface ?

1970


What is an object's lock and which object's have locks in java programming?

572






what is encapsulation in java? Explain

667


What is a cup of java?

563


What is your platform’s default character encoding?

562


What is the method overriding?

624


what is a thread pool in java and why is it used?

534


What are the advantages of java over cpp?

559


What is byte value?

559


What is treeset and treemap in java?

582


What is lazy initialization in java?

558


What do you mean by synchronized non access modifier?

569