<?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 Finalizer Method</title>
	<atom:link href="http://www.bestjavainterviewquestions.com/category/java-interview-questions/define-finalizer-method-java-interview-questions/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, 30 Jul 2010 06:00:25 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>What is Finalizer Methods</title>
		<link>http://www.bestjavainterviewquestions.com/what-is-finalizer-methods/</link>
		<comments>http://www.bestjavainterviewquestions.com/what-is-finalizer-methods/#comments</comments>
		<pubDate>Mon, 27 Oct 2008 18:44:45 +0000</pubDate>
		<dc:creator>Ramakrishna</dc:creator>
				<category><![CDATA[Define Finalizer Method]]></category>
		<category><![CDATA[define finalizer method]]></category>

		<guid isPermaLink="false">http://www.bestjavainterviewquestions.com/?p=421</guid>
		<description><![CDATA[We have seen that a constructor method is used to initialize an object when it is declared. This process is known as Initialization. Similarly, Java supports aa concept called finalization, which is just opposite to initialization. We know that Java run-time is an automatic garbage collecting system. It automatically frees up the memory resources used [...]]]></description>
			<content:encoded><![CDATA[<p>We have seen that a constructor method is used to initialize an object when it is declared. This process is known as <strong>Initialization</strong>. Similarly, Java supports aa concept called <strong>finalization</strong>, which is just opposite to initialization.</p>
<p>We know that Java run-time is an automatic garbage collecting system. It automatically frees up the memory resources used by the objects. But objects may hold other non-object resources such as file descriptors or window system fonts. The garbage collector cannot free these resources. In order to free these resources we must use a <em>finalizer method. </em>This is similar to destructor in C++.</p>
<p>The finalizer method is simply <strong>finalize() </strong>and can be added to aany class. Java calls that method whenever it is about to reclaim the space for that object. The <em>finalize</em> method should explicitly define the tasks to be performed.</p>
<h2  class="related_post_title">Random Posts</h2><ul class="related_post"><li><a href="http://www.bestjavainterviewquestions.com/jsp-standard-questions/" title="JSP Standard Questions"><img src="Array" alt="JSP Standard Questions" /></a></li><li><a href="http://www.bestjavainterviewquestions.com/jsp-interview-questions/" title="JSP Interview Questions"><img src="Array" alt="JSP Interview Questions" /></a></li><li><a href="http://www.bestjavainterviewquestions.com/hibernate-interview-questions/" title="Hibernate Interview Questions"><img src="Array" alt="Hibernate Interview Questions" /></a></li><li><a href="http://www.bestjavainterviewquestions.com/define-session-tracking-in-httpservlet/" title="Define Session Tracking in HttpServlet"><img src="Array" alt="Define Session Tracking in HttpServlet" /></a></li><li><a href="http://www.bestjavainterviewquestions.com/522/" title="Creating a Text file using Java"><img src="Array" alt="Creating a Text file using Java" /></a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.bestjavainterviewquestions.com/what-is-finalizer-methods/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
