<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Java Interview Questions &#187; define final variable and method</title>
	<atom:link href="http://www.bestjavainterviewquestions.com/category/java-interview-questions/define-final-variable-and-method/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.bestjavainterviewquestions.com</link>
	<description>Java Interview Questions &#124; Core Java Interview Questions &#124; Advanced Java Interview Questions &#124; EJB Interview Questions &#124; J2EE Interview Questions &#124; Hibernate Interview Questions</description>
	<lastBuildDate>Fri, 03 Feb 2012 10:23:55 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Final Variables and Methods</title>
		<link>http://www.bestjavainterviewquestions.com/final-variables-and-methods/</link>
		<comments>http://www.bestjavainterviewquestions.com/final-variables-and-methods/#comments</comments>
		<pubDate>Mon, 27 Oct 2008 18:07:58 +0000</pubDate>
		<dc:creator>Ramakrishna</dc:creator>
				<category><![CDATA[define final variable and method]]></category>
		<category><![CDATA[final variable]]></category>

		<guid isPermaLink="false">http://www.bestjavainterviewquestions.com/?p=417</guid>
		<description><![CDATA[All methods and variables can be overridden by default in subclasses. If we sish to prevent the subclasses from overriding the members of the superclass, we can declare them as final using the key word final as a modifier . Example: final int size=100; final void show(){&#8230;&#8230;.} Making a method final ensures that the functionality [...]]]></description>
			<content:encoded><![CDATA[<p>All methods and variables can be overridden by default in subclasses. If we sish to prevent the subclasses from overriding the members of the superclass, we can declare them as final using the key word <strong>final </strong>as a modifier .</p>
<p><em>Example:</em></p>
<p><strong>final</strong> int size=100;</p>
<p><strong>final</strong> void show(){&#8230;&#8230;.}</p>
<p>Making a method final ensures that the functionality defined in this method will never be altered in any way. Similarly, the value of a final variable can never be changed. Final variables, behave like class variables and they do not take any space on individual objects of the class</p>
<h2  class="related_post_title">Random Posts</h2><ul class="related_post"><li>August 24, 2008 -- <a href="http://www.bestjavainterviewquestions.com/define-nullpointerexception/" title="Define NullPointerException">Define NullPointerException</a> (0)</li><li>October 27, 2008 -- <a href="http://www.bestjavainterviewquestions.com/define-connection-pooling/" title="Define Connection Pooling">Define Connection Pooling</a> (0)</li><li>October 5, 2008 -- <a href="http://www.bestjavainterviewquestions.com/what-is-unicode-system/" title="What is unicode System">What is unicode System</a> (0)</li><li>June 17, 2008 -- <a href="http://www.bestjavainterviewquestions.com/awt-interview-questions-2/" title="AWT Interview Questions">AWT Interview Questions</a> (0)</li><li>September 2, 2008 -- <a href="http://www.bestjavainterviewquestions.com/define-session-id/" title="Define Session ID">Define Session ID</a> (0)</li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.bestjavainterviewquestions.com/final-variables-and-methods/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

