What does final mean in Java?

final is a keyword used with methods, variables, classes, and parameters method.

If it used with:

  • Method : it can’t be redefined in a subclass. this technique performs the calls of this method.
  • Class : it can’t be derived by another class.
  • Variable : it can’t be modified after its initialization, it is initialized only once. If the class containing this variable has many constructors, it has to be initialized correctly regardless the constructor used.
  • Parameter method : that’s done to prevent the initialization of this parameter by the method.


See also :

Share it with your freinds on Facebook Tweet it to your freinds on Twitter Myspace Friendfeed Technorati del.icio.us Digg Google Yahoo Buzz StumbleUpon


No ping yet

  1. seo says:

    Hi there, just became alert to your blog through Google, and found that it’s really informative. I’m gonna watch out for brussels. I’ll be grateful if you continue this in future. Lots of people will be benefited from your writing. Cheers!

  2. myvideo says:

    Greetings from Carolina! I’m bored to tears at work so I decided to browse your blog on my iphone during lunch break. I enjoy the information you provide here and can’t wait to take a look when I get home. I’m surprised at how quick your blog loaded on my cell phone .. I’m not even using WIFI, just 3G .. Anyhow, fantastic blog!

  3. car repo says:

    Nice work with the layout of the blog – it is very easy on the eye

Leave a Reply

Your email address will not be published.

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

WP SlimStat