• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

what is Final keyword concept?

 
Muhammad Saifuddin
Ranch Hand
Posts: 1324
Android Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Shailesh Chandra
Ranch Hand
Posts: 1082
Java Oracle Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
http://www.google.com/search?hl=en&lr=lang_en&q=java+%2B+%22final+keyword%22

Shailesh
 
Guru dhaasan
Ranch Hand
Posts: 126
Java Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Muhammad Saifuddin
Ranch Hand
Posts: 1324
Android Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for your response guys..
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic