what is difference between throw and throws in exception?

Answer Posted / krishna

Throws is a keyword.This is used to say explicitly this
method has doughtful body,where as Throw is used to handle
the exception in next level or itself..............

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Which non-unicode letter characters may be used as the first character of an identifier?

600


Can we declare the static variables and methods in an abstract class?

551


What is the use of parseint in java?

539


What is illegal identifier in java?

538


How to create com object in Java?

651






What is the significance of java packages?

616


Is age a discrete variable?

528


What is the use of inner class?

551


How to read and write image from a file ?

561


What is * argv?

710


how to create daemon thread in java?

608


Can java list contain duplicates?

575


What are data types in oop?

556


Write java program to reverse string without using api?

556


Can a main method be overloaded?

575