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

Explain final, finalize() and finally?

Answer Posted / venkataramana

final is a keyword.
we can use the final keyword in different context.
final keyword can be used with 1.Variables
2.Methods
3.Classes

When we use the final keyword with variables ,the value of
the final variable will not be changed i.e its value will be
fixed .

when we use the final keyword with methods, that is the
final method cannot be overridden.

when we use the final keyword with classes, that is the
final class cannot be extended to subclasses.

Finally() block is followed after try() or catch() block.
Finall() block executed even though if there the exception
having or not in the program.

Is This Answer Correct ?    8 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is binary tree in java?

1004


What is the difference between hashmap and hashtable in java?

1048


What is the difference between reader/writer and inputstream/output stream?

1027


Explain why wait(), notify() and notifyall() methods are in object class rather than in thread class?

946


Explain OOPs concept.

1045


Why main method is static in java?

1101


Do loops java?

961


Why multiple inheritance is not supported by java?

928


How to sort an array in java without using sort method?

845


What is the maximum size of hashmap in java?

938


What do you understand by soft reference?

982


What is a bubble sort in java?

898


how to run ecllipse with jettyserver for windows environment using batch file

2004


Explain how to convert any java object into byte array.

924


what is the volatile modifier for? : Java thread

927