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

Are primitives objects?

1111


How many techniques can be employed to create a string object?

1166


Describe method overriding

1178


Write a function for palindrome and factorial and explain?

1138


Explain illegalmonitorstateexception and when it will be thrown?

1155


Difference between linkedlist and arraylist.

1116


What are data types in oop?

1078


What are the principle concepts of oops?

1011


How can you handle java exceptions?

1069


What is method in java ?

1140


What is boolean keyword in java?

1175


What is the difference between procedural and object-oriented programs?

1011


What do you understand by the term string pool?

1068


What is the string function?

1003


How do you declare a string variable?

1076