aspose file tools*
The moose likes Beginning Java and the fly likes what is Final keyword concept? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "what is Final keyword concept?" Watch "what is Final keyword concept?" New topic
Author

what is Final keyword concept?

Muhammad Saifuddin
Ranch Hand

Joined: Dec 06, 2005
Posts: 1321

Hi Ranchers,

My Questions is more about the concept of final keyword.

why we cannot extends final class in non-final class?
or what the usage of final keywords with Class, Methods and variables?
and what are conditions when we need to apply this key word with class, methods and variables?

Thanks


Saifuddin..
[Blog][Linkedin] How To Ask Questions On JavaRanch My OpenSource
Shailesh Chandra
Ranch Hand

Joined: Aug 13, 2004
Posts: 1081

http://www.google.com/search?hl=en&lr=lang_en&q=java+%2B+%22final+keyword%22

Shailesh


Gravitation cannot be held responsible for people falling in love ~ Albert Einstein
Guru dhaasan
Ranch Hand

Joined: Sep 13, 2006
Posts: 126

final variables is nothing but a constant whose values cannot be changed.

final method is the one which cannot be overridden (In terms of inheritance)

final class is the one which cannot be sublassed further


Thanks, Shiv
SCJP, OCE - JSP & Servlets Developer
Muhammad Saifuddin
Ranch Hand

Joined: Dec 06, 2005
Posts: 1321

Thanks for your response guys..
 
jQuery in Action, 2nd edition
 
subject: what is Final keyword concept?