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 is 'finally' method in Exceptions?

Answer Posted / k.k

ALL ANSWERS GIVEN ABOVE ARE WRITE.........


BUT

ONLY CASE THAT CAN SUPPRESS THE FINALY BLOCK IS

public class SupressFinallyExample
{

public static void main(String args[])
{

try
{
// the code that may cause an exception
//System.exit(0);
}
catch (Exception e)
{
System.exit(0);//if exception occure..
}
finally
{
// code to be executed irrespective of the
occurrence of exception
}
}

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How many bits is a 64 bit byte?

1024


How do I get 64 bit java?

1038


Explain a few methods of overloading best practices in java?

938


What is the advantage of functional interface in java 8?

960


What are advantages of using Java?s layout managers than windowing systems?

2332


What is rule of accessibility in java?

978


Can a class have multiple subclasses?

1065


How many types of java are there?

941


Can each java object keep track of all the threads that want to exclusively access it?

922


Can a class declared as private be accessed outside it’s package?

968


If we don’t want some of the fields not to serialize how to do that?

976


What is data structure in java?

951


What is the use of http-tunneling in rmi?

1016


Why for each loop is used?

975


How do you override a method in java?

966