what is difference between throw and throws in exception?

Answer Posted / pasupathi

throw is used to handle user defined Exception where as throws is used ti handle Predefined exceptions

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the use of callablestatement?

580


What is the difference between final, finally and finalize() in java?

521


Why collection doesn’t extend cloneable and serializable interfaces?

649


How do you use spaces in java?

534


What is re-factoring in software?

578






What are the differences between stringbuffer and stringbuilder?

543


Does constructor creates the object ?

588


What is getkey () in java?

581


Is map sorted in java?

572


What are "class access modifiers" in Java?

615


Can you explain the usages of class.forname()?

613


What is multithreading in java?

553


What is difference between this and super keyword?

521


How do you define a set in java?

518


What is time complexity java?

543