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 will happen if we write code like:
try{}catch(exception e)catch(IOException i)

Answer Posted / mathi

Ignoring the incorrect syntax of the Try\Catch Block, it
will never reach the IOException portion of the
Catch......the first catch will always be triggered due to
it only Catching type Exception.

Is This Answer Correct ?    1 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What will be the default values of all the elements of an array defined as an instance variable?

1019


What does null mean in java?

1056


What is the difference between normal report & matrix report?

1097


What are the topics in advance java?

958


What is pangram in java?

1003


What is meant by string is immutable?

1069


What are the types of methods in java?

1104


Can arraylist hold different types java?

973


What is the benefit of inner / nested classes ?

984


What are invisible components?.

2141


How can we avoid including a header more than once?

1029


Can a final method be overloaded?

936


What are examples of modifiers?

1108


What is the difference between heap and stack memory?

1190


Explain runtime exceptions?

1166