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 / sitaram

it is not complied. because first catch having child
exception and last exception having parent exception is must.
correct answer is :
try{
}
catch(IOException i){
}
catch(Exception e){
}

Is This Answer Correct ?    19 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between overriding & overloading?

1067


Are global variables initialized to zero?

952


How will you load a specific locale?

970


What is java and its types?

1086


Difference between overriding and overloading in java?

1063


What is break and continue statement?

1084


Can a class be private in java?

988


Can we have multiple public classes in a java source file?

1178


What is the difference between final, finally and finalize()?

1141


What is super?

1139


What is a private class in java?

1046


What is port number in java?

1030


Can private method static?

907


Explain about arraylist?

1089


What is strings in java?

1037