what is difference between throw and throws in exception?
Answer Posted / velayutham
throw- means user defined exception. we want throw manually
throw the exception.
throws- means jvm going to take all exception.
| Is This Answer Correct ? | 33 Yes | 10 No |
Post New Answer View All Answers
Which sorting algorithm is best in java?
Why string is called as immutable?
What is bom encoding?
Explain the difference between static and dynamic binding in java?
What is nested top-level class?
Can we create a constructor in abstract class?
How do I write a self declaration?
What is scope & storage allocation of global and extern variables? Explain with an example
Can constructor return value?
Explain the inheritance?
What is the difference between sleep and wait in java?
What is final int?
What are the different conditional statements?
How is it possible in java programming for two string objects with identical values not to be equal under the == operator?
What is the difference between serial and throughput garbage collector?