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

Name few java 8 annotations ?

967


What is functional interface in java example?

934


What is java util hashmap?

940


Which way a developer should use for creating thread, i.e. Sub classing thread or implementing runnable.

880


How can I right-justify a string?

1091


What does the “static” keyword mean?

1044


How are variables stored in memory?

996


Can we declare a class as static?

1036


What are jee technologies?

959


What is natural ordering in java?

895


How we can skip finally block of exception even if some exception occurs in the exception block in java?

877


What is the difference between a constructor and a method?

1153


How will you serialize a singleton class without violating singleton pattern?

1898


What's the purpose of using break in each case of switch statement?

927


Can a static class have a constructor java?

928