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 / maurice johnson

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 ?    12 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What type of variable is gender?

984


What is a vector in java?

1020


Will set allow duplicates in java?

967


A person says that he compiled a java class successfully without even having a main method in it? Is it possible?

1046


Define an applet in java?

1144


What are static blocks and static initalizers in java ?

1070


What are the different conditional statements?

981


What is an array length?

895


What are the major drawbacks of external iteration?

1052


Using callable statement how can you pass out parameters, explain with example?

1215


How do you allocate memory to object?

978


What is treeset in java?

986


What is a Hash Table? What are the advantages of using a hash table?

1077


What is the difference between pass by reference and pass by pointer?

1082


Differentiate between a class and an object.

1024