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

when to use abstract class and when to use interface?

16 Answers   Exterro, iGate, IonIdea,


Where and how can you use a private constructor?

0 Answers  


Can you explain the usages of class.forname()?

0 Answers  


What does regex mean?

0 Answers  


can we have function for truncating the sign as like abs in oracle.

1 Answers  


How can we create an immutable class in java?

0 Answers  


What is the range of the char type?

3 Answers  


what is the swingutilities.invokelater(runnable) method for? : Java thread

0 Answers  


What is an immutable object? How do you create one in java?

0 Answers  


What do you understand by final value?

0 Answers  


Name the components that are termed to be Heavy-weight component but available in Light-weight components?

0 Answers  


What is advantage of java?

0 Answers  


Categories