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?

Answers were Sorted based on User's Feedback



What is "finally" keyword?..

Answer / k.santosh kumar

Finally:
finally is block of code written in exception handling.
finally block is executed irrespective whether exception as
occured or not. it will usefull when u want to close user
defined resources like file , opened resources(db stmts).

Is This Answer Correct ?    25 Yes 2 No

What is "finally" keyword?..

Answer / guest

FINALLY IS KEYWORD USED IN EXCEPTION HANDLING.
IT CREATES A BLOCK OF CODE TO BE EXECUTED AFTER TRY--CATCH
HAS COMPLETED AND BEFORE THE CODE FOLLOWING TRY--CATCH.

Is This Answer Correct ?    11 Yes 4 No

What is "finally" keyword?..

Answer / taniya

The finally is Java keyword that is used to defined a block
that is always executed in a try-catch-finally statement.It
is use after the try an catch block to handle the unexpected
exception occurred in the try block.

Is This Answer Correct ?    4 Yes 2 No

What is "finally" keyword?..

Answer / piyush pathak

finally :
finally is a java keyword.It is a block of statement which
is executed surley after the try-catch block whether method
returns normally or throws an exception.

Is This Answer Correct ?    2 Yes 0 No

What is "finally" keyword?..

Answer / rustam

Finally is a java keyword which define a block that surely executed whether an exception is generated or not. this block
is an optional but it is good to put when we want cleanup the resources.

Is This Answer Correct ?    2 Yes 0 No

What is "finally" keyword?..

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

What is "finally" keyword?..

Answer / ravikiran(aptech mumbai)

finally is used to conserve the resources before the
exception is being caught

Is This Answer Correct ?    4 Yes 4 No

What is "finally" keyword?..

Answer / seem a rana

final is the last class.that will never inherit further....
due to final key word... jus like ,,, final.test.

Is This Answer Correct ?    1 Yes 1 No

What is "finally" keyword?..

Answer / pathan muzafar

Finally is a keyword which is used execute the blocks after try and catch blocks even if exception occured or not in both try and catch block.

Note: Here,Block means collection of statements(variables,methods etc)....
Exception means Run time error during execution

Is This Answer Correct ?    0 Yes 0 No

What is "finally" keyword?..

Answer / sravanthi

In the finally block we usually have code that is used to
perform clean up activities corresponding to the code in the
try block.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Core Java Interview Questions

How an object is serialized in java?

0 Answers  


What are exception handling keywords in java?

0 Answers  


What is a prefix function.write down a code to compute prefix function.

0 Answers  


What is the abstract class?

0 Answers  


What is the use of beaninfo?

0 Answers  


Can a method be static?

0 Answers  


Do I need to import java.lang package any time? Why?

1 Answers  


What method is used to compare two strings ?

4 Answers  


What is functional interface in javatpoint?

0 Answers  


what is anonymous class in java?

0 Answers  


What is a byte string?

0 Answers  


I have a Person object with 5 variables and I want to store them in a file called Person.txt. What should I do?

3 Answers   KPIT,


Categories