What is the relationship between a method?s throws clause
and the exceptions that can be thrown during the method?s
execution?
Answer Posted / chinu
Throws is used in the method definition to mark what all
exceptions the method can throw, so that the code that
accesses the method can give the corresponding catch block
for that exception.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
When we should use serialization?
Explain about the performance aspects of core java?
Can we override data members in java?
What is lazy programming?
What does system.gc() and runtime.gc() methods do?
Why do we override tostring method in java?
Can we increase array size dynamically in java?
What is meant by vector class, dictionary class, hash table class, and property class?
What does java ide mean?
What are abstract methods in java?
Why does java not support pointers?
How many digits is int32?
Difference between comparator and comparable in java?
Can we have multiple classes in a single file?
Explain static nested classes ?