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
Explain the significance of class loaders in bootstrap?
What exceptions occur during serialization?
Is string is a data type in java?
Can we cast any other type to boolean type with type casting?
What are the three parts of a lambda expression? What is the type of lambda expression?
Why bytecode is called bytecode?
Does hashset allow duplicates in java?
Why is string builder not thread safe?
What is null object in java?
Explain differences between checked and unchecked exceptions in java?
Write a program in java to find the maximum and minimum value node from a circular linked list.
What is the difference between processes and threads?
Why do we use return statement?
What are the java ide’s?
Explain wrapper classes in java?