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...

how to make a un-checked exception as a checked exception one.

Answer Posted / suvarna

Wrapping Checked Exceptions in Unchecked Exceptions
try {
// ... some code that could throw IOException or
RemoteException
} catch(Exception ex) {
throw new RuntimeException(ex.toString());
}

Is This Answer Correct ?    1 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why we go for collections in java?

1029


What are default methods ?

1109


Can you declare a private method as static?

1196


What is the difference between class & structure?

1319


What is class array in java?

1124


Which of the classes will have more memory allocated?

1019


Can interface be private in java?

1070


Why does java not support pointers?

1176


What loop means?

1004


What are the differences between abstract class and interface?

1163


What is meant by anonymous class?

1090


What is a linkedhashmap java?

1059


What is java used for?

1063


Can we use different return types for methods when overridden?

1063


What does || || mean in math?

995