Home Help Java F Java final
Questions:Ask|Latest


 
 

Share on Google+Share on Google+

Java final

Advertisement
In the Java programming language , the keyword "final" is used with different entity which makes it unchangeable later.

Java final

     


In the Java programming language, the keyword "final" is used with different entity which makes it unchangeable later. We can have final methods, final classes, final data members, final local variables and final parameters.
1. variables: A final variable can be set once and only once.
2. methods: A final method cannot be overridden nor hidden.
3. classes: A final class cannot be extended. A final class implicitly has all the methods as final, but not necessarily the data members.

Read more at:
http:/www.roseindia.net/javatutorials/final_methods.shtml

 

Advertisement

Liked it!  Share this Tutorial


Follow us on Twitter, or add us on Facebook or Google Plus to keep you updated with the recent trends of Java and other open source platforms.

Posted on: November 9, 2009

Ask Questions?    Discuss: Java final  

Post your Comment


Your Name (*) :
Your Email :
Subject (*):
Your Comment (*):
  Reload Image
 
 
Comments
DMCA.com