Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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

Answers were Sorted based on User's Feedback



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

Answer / 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

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

Answer / 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

More Core Java Interview Questions

What is integer parseint?

0 Answers  


What is replacefirst in java?

0 Answers  


how you will prevent method overriding?

6 Answers   HCL,


What are 3 boolean operators?

0 Answers  


Can you declare a static variable in a method?

7 Answers  


what are depricated methods in threads and explain the lifecycle methods

5 Answers   CTS,


Why can't we make a class private in java?

0 Answers  


How to access a variable if it is declared as private?

3 Answers  


What is the difference between JDK and JVM?

0 Answers  


Can we have two methods in a class with the same name?

0 Answers  


What is deserialization and how do we do deserialization?

3 Answers   Synechron,


What is the parse method in java?

0 Answers  


Categories