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.
We have 1000s of tutorials on our website. Search Tutorials tutorials on our website.
Posted on: November 9, 2009 If you enjoyed this post then why not add us on Google+? Add us to your Circles