What is the relationship between a method?s throws clause
and the exceptions that can be thrown during the method?s
execution?

Answer Posted / ranganathkini

The throws clause of a method basically defines the types of
checked exceptions the method can throw during its
execution. This clause alerts the client code that invokes
the method that it has to have suitable try...catch blocks
to handle the checked execeptions.

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is difference between equals and hashcode method?

758


Can private method static?

626


What are the advantages of java?

731


Can we write method inside a method in java?

738


What is merge sort in java?

750


Why is the main method declared static?

828


what is heap memory?

845


What does the three dot emoji mean?

797


Explain about complier design(phases)

819


What is lambda in java?

731


What’s meant by anonymous class?

828


How does map works in java?

727


What do you mean by local variable and instance variable?

698


Is java free for commercial?

658


What are the 3 types of control structures?

701