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" keyword?

Answer Posted / ss

The finally is Java keyword that is used to defined a block
that is always executed in a try-catch-finally statement.
try{
int x=10/2;
}
finally{
system.out.println("i am from finally");
}
here compiler will not compliant.why?even though x=10/2,x=10/0.

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is private static class in java?

1061


What is purpose of keyword void?

1090


Can an unreferenced object be referenced again?

1246


How does callback work in java?

1121


What is an example of declaration?

1080


What is the preferred size of a component in java programming?

1046


What is data and its types?

1053


How many bits are used to represent unicode, ascii, utf-16, and utf-8 characters?

1148


What is the use of accept () method in java?

1135


What is the byte order of byte buffer?

1077


What are thread priorities and importance of thread priorities in java?

1231


What is final keyword in java?

1069


What is the difference between superclass and subclass?

1248


Can you extend singleton class?

1155


What if the main() method is declared as private? What happens when the static modifier is removed from the signature of the main() method?

1239