<?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; Calling Java Objects</title>
	<atom:link href="http://www.bestjavainterviewquestions.com/category/java-interview-questions/calling-java-objects/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>Calling a Method in Java</title>
		<link>http://www.bestjavainterviewquestions.com/calling-a-method-in-java/</link>
		<comments>http://www.bestjavainterviewquestions.com/calling-a-method-in-java/#comments</comments>
		<pubDate>Mon, 22 Sep 2008 17:09:13 +0000</pubDate>
		<dc:creator>Ramakrishna</dc:creator>
				<category><![CDATA[Calling Java Objects]]></category>
		<category><![CDATA[Add new tag]]></category>
		<category><![CDATA[java objects]]></category>

		<guid isPermaLink="false">http://www.bestjavainterviewquestions.com/?p=364</guid>
		<description><![CDATA[Calling a Method in Java : The methods called in java in 2 types a) Create an object to the class to which the method belongs syntax: Classname obj=new Classname(); ForEx : First is a java program then we can create and object to that class as follows: First f=new First(); Here &#8216;f&#8217; is the [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Calling a Method in Java </strong><strong> : </strong>The methods called in java in 2 types</p>
<p><em>a) Create an object to the class to which the method belongs</em></p>
<p><strong>syntax:</strong><br />
<span style="color: red; font-size: small;"><br />
<em> Classname obj=new Classname();<br />
ForEx : First is a java program<br />
then we can create and object to that class as follows:<br />
First f=new First();<br />
Here &#8216;f&#8217;  is the object of the class First</em></span></p>
<p>b) Then using object name.Method name(Call the method using obj.method() )</p>
<p>we should call the method:</p>
<p><strong>Syntax:</strong></p>
<p><span style="color: red; font-size: small;"><em>&#8220;Obj.method();&#8221;</em></span></p>
<p><span style="color: red; font-size: small;"><em>ForEx : Consider First is a java program</em></span></p>
<p><span style="color: red; font-size: small;"><em> First f=new First();<br />
Here &#8216;f&#8217;  is the object of the class First </em></span></p>
<p><span style="color: red; font-size: small;"><em>f.method1();</em></span></p>
<h2  class="related_post_title">Related Post</h2><ul class="related_post"><li><a href="http://www.bestjavainterviewquestions.com/define-precompile-of-jsp-page/" title="Define Precompile of Jsp page"><img src="Array" alt="Define Precompile of Jsp page" /></a></li><li><a href="http://www.bestjavainterviewquestions.com/what-is-api/" title="What is API"><img src="Array" alt="What is API" /></a></li><li><a href="http://www.bestjavainterviewquestions.com/what-is-jre-explain/" title="What is JRE ? Explain"><img src="Array" alt="What is JRE ? Explain" /></a></li><li><a href="http://www.bestjavainterviewquestions.com/explain-session-tracking-using-servlet/" title="Explain Session tracking using Servlet"><img src="Array" alt="Explain Session tracking using Servlet" /></a></li><li><a href="http://www.bestjavainterviewquestions.com/why-does-ejb-needs-two-interfaces/" title="Why does EJB needs two interfaces"><img src="Array" alt="Why does EJB needs two interfaces" /></a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.bestjavainterviewquestions.com/calling-a-method-in-java/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
