what is difference between throw and throws in exception?
Answer Posted / ravikumar
Throws - what ever the exception you are declaring are
taken care by JVM. If it is a user defined exception in throws
block, JVM doesn't know when to throw that exception . For
this purpose we use Throw for a certain conditions/logic to
throw these user defined exceptions
| Is This Answer Correct ? | 0 Yes | 1 No |
Post New Answer View All Answers
Is a case study a method or methodology?
What is the need of transient variables in Java ?
What is java util list?
how are methods defined?
Difference between throw and throws?
What is style and indentation?
Explain about static nested classes in java?
Explain about arraylist?
What is stringbuffer in java?
What is local class in java?
Does windows 10 need java?
what are three ways in which a thread can enter the waiting state? : Java thread
What kind of variables can a class consist?
What are recursive functions?
What are the types of casting?