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
Which non-unicode letter characters may be used as the first character of an identifier?
Can we declare the static variables and methods in an abstract class?
What is the use of parseint in java?
What is illegal identifier in java?
How to create com object in Java?
What is the significance of java packages?
Is age a discrete variable?
What is the use of inner class?
How to read and write image from a file ?
What is * argv?
how to create daemon thread in java?
Can java list contain duplicates?
What are data types in oop?
Write java program to reverse string without using api?
Can a main method be overloaded?