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 are the rules to use try catch finally?



what are the rules to use try catch finally?..

Answer / naveen

Rules to using try catch finally blocks.

First thing is try,catch and finally blocks are used in
Exception Handling.In try block we are write Exception
rising code in catch block using exception handling code and
finally block is used to releasing the resource. try and
catch blocks are executed are not finally block is executed.
we are using this combination

try{
//Exception rising Code
}catch(Exception e){

}finally{
//releasing the resource
}

2)
try{
//Exception rising Code
}catch(Exception e){

}

3)try{
//Exception rising Code
}finally{
//releasing the resource
}

Is This Answer Correct ?    11 Yes 0 No

Post New Answer

More Core Java Interview Questions

How do you sort in descending order in java using collections sort?

0 Answers  


why would you use a synchronized block vs. Synchronized method? : Java thread

0 Answers  


What are the parameters used in Connection pooling?

1 Answers   IBM,


Why is flag used in java?

0 Answers  


Explain inner classes ?

0 Answers  


What is a java object and java application?

0 Answers  


How does sublist works in java?

0 Answers  


How do you format in java?

0 Answers  


Write a program to find the whether a number is an Armstrong number or not?

0 Answers   Aspire, Infogain,


State the merge-sort principle and its time complexity.

0 Answers   Akamai Technologies,


Why java is used everywhere?

0 Answers  


Can u write constructor in abstract.If yes den when it will be invoked.

4 Answers   SunGard,


Categories