What is the difference between throw and throws?
Answer Posted / suresh
mainly throw is used for user defined exceptions and throws
is used for compiler defined excetions.
Ex: if u get a NullPointer exception then we throws this
excetion to the compiler defined excetion class.
if u get malformed or ur own excetion in this time we to
throw this to our own defined excetion
| Is This Answer Correct ? | 2 Yes | 1 No |
Post New Answer View All Answers
What are facelets templates?
What is a vector in java?
Is minecraft 1.15 out?
What is an empty list in java?
Why map is used in java?
Difference difference paint() and paintcomponent()?
What is the size of an array?
What is singleton class example?
What is defined as false sharing in the context of multithreading?
What is the difference between method and means?
What is the indent key?
Where can I find jdk in my computer?
Why is a string immutable?
What is array command?
make a method which any number and any type of argument and print sum of that arguments.....