<?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>SCJP Certification &#187; method</title>
	<atom:link href="http://www.scjp-certification.com/tag/method/feed" rel="self" type="application/rss+xml" />
	<link>http://www.scjp-certification.com</link>
	<description>Sun Certified Java Programmer Certification exam essentials</description>
	<lastBuildDate>Fri, 30 Sep 2011 05:54:18 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>What are the resonsebility of a deployer?</title>
		<link>http://www.scjp-certification.com/what-are-the-resonsebility-of-a-deployer.html</link>
		<comments>http://www.scjp-certification.com/what-are-the-resonsebility-of-a-deployer.html#comments</comments>
		<pubDate>Fri, 16 Apr 2010 12:01:50 +0000</pubDate>
		<dc:creator>Daisy Williams</dc:creator>
				<category><![CDATA[SCBCD]]></category>
		<category><![CDATA[deployer]]></category>
		<category><![CDATA[exam name]]></category>
		<category><![CDATA[method]]></category>
		<category><![CDATA[security]]></category>

		<guid isPermaLink="false">http://www.scjp-certification.com/?p=650</guid>
		<description><![CDATA[deployer is responsible for the following security-related tasks: Mapping the application permission model provided by the application assembler to policies...]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.scjp-certification.com%2Fwhat-are-the-resonsebility-of-a-deployer.html"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.scjp-certification.com%2Fwhat-are-the-resonsebility-of-a-deployer.html&amp;style=normal&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>deployer is responsible for the following security-related tasks:<br />
Mapping the application permission model provided by the application assembler to policies and mechanisms specific to the operational environment. </p>
<p>Assigning principals to the security roles in the deployment descriptor.<br />
A deployer receives the packaged files and deployment descriptor from the application assembler. The assembler assigns a logical name to the security role, which may not be used in the real environment. The deployer matches this logical name to the real user.</p>
<p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.scjp-certification.com%2Fwhat-are-the-resonsebility-of-a-deployer.html&amp;title=What%20are%20the%20resonsebility%20of%20a%20deployer%3F"><img src="http://www.scjp-certification.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a> </p>]]></content:encoded>
			<wfw:commentRss>http://www.scjp-certification.com/what-are-the-resonsebility-of-a-deployer.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>What is the getCallerIdentity() method?</title>
		<link>http://www.scjp-certification.com/what-is-the-getcalleridentity-method.html</link>
		<comments>http://www.scjp-certification.com/what-is-the-getcalleridentity-method.html#comments</comments>
		<pubDate>Tue, 13 Apr 2010 12:01:46 +0000</pubDate>
		<dc:creator>Daisy Williams</dc:creator>
				<category><![CDATA[SCBCD]]></category>
		<category><![CDATA[ascbcd]]></category>
		<category><![CDATA[getCallerIdentity()]]></category>
		<category><![CDATA[java method]]></category>
		<category><![CDATA[method]]></category>

		<guid isPermaLink="false">http://www.scjp-certification.com/?p=644</guid>
		<description><![CDATA[The getCallerIdentity() method is used to obtain the java.security.Identity of the caller. The container is allowed to return null from...]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.scjp-certification.com%2Fwhat-is-the-getcalleridentity-method.html"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.scjp-certification.com%2Fwhat-is-the-getcalleridentity-method.html&amp;style=normal&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>The getCallerIdentity() method is used to obtain the java.security.Identity of the caller. The container is allowed to return null from this method. The enterprise bean should use the getCallerPrincipal method instead. The following is the general form of the method:</p>
<p>public java.security.Identity getCallerIdentity() </p>
<p>This method returns the Identity object that identifies the caller.</p>
<p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.scjp-certification.com%2Fwhat-is-the-getcalleridentity-method.html&amp;title=What%20is%20the%20getCallerIdentity%28%29%20method%3F"><img src="http://www.scjp-certification.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a> </p>]]></content:encoded>
			<wfw:commentRss>http://www.scjp-certification.com/what-is-the-getcalleridentity-method.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>What are the methods available in HTTP 1.1?</title>
		<link>http://www.scjp-certification.com/what-are-the-methods-available-in-http-1-1.html</link>
		<comments>http://www.scjp-certification.com/what-are-the-methods-available-in-http-1-1.html#comments</comments>
		<pubDate>Wed, 24 Mar 2010 09:56:46 +0000</pubDate>
		<dc:creator>Daisy Williams</dc:creator>
				<category><![CDATA[SCWCD]]></category>
		<category><![CDATA[http]]></category>
		<category><![CDATA[method]]></category>
		<category><![CDATA[tag]]></category>

		<guid isPermaLink="false">http://www.scjp-certification.com/?p=609</guid>
		<description><![CDATA[HTTP 1.1 defines eight request methods as follows: GET: It is the default request method. It retrieves the resource identified...]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.scjp-certification.com%2Fwhat-are-the-methods-available-in-http-1-1.html"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.scjp-certification.com%2Fwhat-are-the-methods-available-in-http-1-1.html&amp;style=normal&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>HTTP 1.1 defines eight request methods as follows:</p>
<li><uc:hed>GET</uc:hed>: It is the default request method. It retrieves the resource identified by the request URL.</li>
<li><uc:hed>POST</uc:hed>: It is used to send the data to be processed.</li>
<li><uc:hed>HEAD</uc:hed>: It returns the headers identified by the request URL.</li>
<li><uc:hed>PUT</uc:hed>: It stores a resource under the request URL.</li>
<li><uc:hed>DELETE</uc:hed>: It removes the resource identified by the request URL.</li>
<li><uc:hed>OPTIONS</uc:hed>: It returns the HTTP methods that the server supports.</li>
<li><uc:hed>CONNECT</uc:hed>: It requests that a proxy establish a tunnel connection to a port on its behalf. </li>
<li><uc:hed>TRACE</uc:hed>: It returns the header fields sent with the TRACE request.</li>
</ol>
<p>Each of the above XXX request methods (except CONNECT) has a corresponding doXXX method in the HttpServlet class.  </p>
<p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.scjp-certification.com%2Fwhat-are-the-methods-available-in-http-1-1.html&amp;title=What%20are%20the%20methods%20available%20in%20HTTP%201.1%3F"><img src="http://www.scjp-certification.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a> </p>]]></content:encoded>
			<wfw:commentRss>http://www.scjp-certification.com/what-are-the-methods-available-in-http-1-1.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>What is the createNewFile() method of the File class?</title>
		<link>http://www.scjp-certification.com/what-is-the-createnewfile-method-of-the-file-class.html</link>
		<comments>http://www.scjp-certification.com/what-is-the-createnewfile-method-of-the-file-class.html#comments</comments>
		<pubDate>Sat, 12 Dec 2009 12:18:13 +0000</pubDate>
		<dc:creator>Daisy Williams</dc:creator>
				<category><![CDATA[Java Questions]]></category>
		<category><![CDATA[createNewFile()]]></category>
		<category><![CDATA[File class]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[method]]></category>

		<guid isPermaLink="false">http://www.scjp-certification.com/?p=467</guid>
		<description><![CDATA[The createNewFile() method of the File class is used to create a new empty file if a file with the...]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.scjp-certification.com%2Fwhat-is-the-createnewfile-method-of-the-file-class.html"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.scjp-certification.com%2Fwhat-is-the-createnewfile-method-of-the-file-class.html&amp;style=normal&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>The createNewFile() method of the File class is used to create a new empty file if a file with the given name does not already exist. It returns true if a file with the given name does not exist and is successfully created; otherwise, it returns false.</p>
<p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.scjp-certification.com%2Fwhat-is-the-createnewfile-method-of-the-file-class.html&amp;title=What%20is%20the%20createNewFile%28%29%20method%20of%20the%20File%20class%3F"><img src="http://www.scjp-certification.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a> </p>]]></content:encoded>
			<wfw:commentRss>http://www.scjp-certification.com/what-is-the-createnewfile-method-of-the-file-class.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>What are the getTime() and setTime() method?</title>
		<link>http://www.scjp-certification.com/what-are-the-gettime-and-settime-method.html</link>
		<comments>http://www.scjp-certification.com/what-are-the-gettime-and-settime-method.html#comments</comments>
		<pubDate>Fri, 27 Nov 2009 11:54:35 +0000</pubDate>
		<dc:creator>Daisy Williams</dc:creator>
				<category><![CDATA[Java Facts]]></category>
		<category><![CDATA[exam guide]]></category>
		<category><![CDATA[free]]></category>
		<category><![CDATA[method]]></category>
		<category><![CDATA[questions]]></category>
		<category><![CDATA[SCJP]]></category>
		<category><![CDATA[study guide]]></category>

		<guid isPermaLink="false">http://www.scjp-certification.com/?p=447</guid>
		<description><![CDATA[getTime(): The getTime() method returns a date/time of the calendar in a Date object. Date objects are stored as an...]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.scjp-certification.com%2Fwhat-are-the-gettime-and-settime-method.html"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.scjp-certification.com%2Fwhat-are-the-gettime-and-settime-method.html&amp;style=normal&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p><strong>getTime():</strong> The getTime() method returns a date/time of the calendar in a Date object. Date objects are stored as an offset in milliseconds. The general form of the getTime() method is as follows: </p>
<p>Date getTime()</p>
<p>e.g. System.out.println(calendar.getTime());</p>
<p><strong>setTime(): </strong>The setTime() method sets the current calendar&#8217;s date/time from the value of the specified date. The general form of the setTime() method is as follows:</p>
<p>void setTime(Date date)</p>
<p>e.g. calendar.setTime(date2);  </p>
<p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.scjp-certification.com%2Fwhat-are-the-gettime-and-settime-method.html&amp;title=What%20are%20the%20getTime%28%29%20and%20setTime%28%29%20method%3F"><img src="http://www.scjp-certification.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a> </p>]]></content:encoded>
			<wfw:commentRss>http://www.scjp-certification.com/what-are-the-gettime-and-settime-method.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>What is the readLine() method of the Console class?</title>
		<link>http://www.scjp-certification.com/what-is-the-readline-method-of-the-console-class.html</link>
		<comments>http://www.scjp-certification.com/what-is-the-readline-method-of-the-console-class.html#comments</comments>
		<pubDate>Wed, 11 Nov 2009 11:45:11 +0000</pubDate>
		<dc:creator>Daisy Williams</dc:creator>
				<category><![CDATA[Java Facts]]></category>
		<category><![CDATA[console class]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[method]]></category>
		<category><![CDATA[readLine()]]></category>
		<category><![CDATA[String]]></category>

		<guid isPermaLink="false">http://www.scjp-certification.com/?p=400</guid>
		<description><![CDATA[The readLine() method belongs to the Console class. This method is used to read a line of text from the...]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.scjp-certification.com%2Fwhat-is-the-readline-method-of-the-console-class.html"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.scjp-certification.com%2Fwhat-is-the-readline-method-of-the-console-class.html&amp;style=normal&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>The readLine() method belongs to the Console class. This method is used to read a line of text from the console. There are two syntaxes of the readLine() method as follows:</p>
<p><strong>readLine(): </strong>This method is used to read a line of text from the console. It returns a null value if an end of stream has been reached. </p>
<p><strong>public String readLine(String fmt, Object&#8230; args):</strong> This method provides a formatted prompt and then reads a line of text from the console. It returns a null value if an end of stream has been reached.</p>
<p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.scjp-certification.com%2Fwhat-is-the-readline-method-of-the-console-class.html&amp;title=What%20is%20the%20readLine%28%29%20method%20of%20the%20Console%20class%3F"><img src="http://www.scjp-certification.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a> </p>]]></content:encoded>
			<wfw:commentRss>http://www.scjp-certification.com/what-is-the-readline-method-of-the-console-class.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>What will happen if we inherit an abstract class?</title>
		<link>http://www.scjp-certification.com/what-will-happen-if-we-inherit-an-abstract-class.html</link>
		<comments>http://www.scjp-certification.com/what-will-happen-if-we-inherit-an-abstract-class.html#comments</comments>
		<pubDate>Mon, 14 Sep 2009 12:12:12 +0000</pubDate>
		<dc:creator>Daisy Williams</dc:creator>
				<category><![CDATA[Java Facts]]></category>
		<category><![CDATA[abstract]]></category>
		<category><![CDATA[extends]]></category>
		<category><![CDATA[inheritence]]></category>
		<category><![CDATA[method]]></category>

		<guid isPermaLink="false">http://www.scjp-certification.com/?p=198</guid>
		<description><![CDATA[abstract class Ques0347A{ int x; int init(){ x = 15; return x; } abstract void disp(); } public class Ques0347...]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.scjp-certification.com%2Fwhat-will-happen-if-we-inherit-an-abstract-class.html"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.scjp-certification.com%2Fwhat-will-happen-if-we-inherit-an-abstract-class.html&amp;style=normal&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p><strong>abstract class Ques0347A{<br />
   int x;<br />
   int init(){<br />
                x = 15;<br />
                return x;<br />
               }<br />
   abstract void disp();<br />
   }</p>
<p>   public class Ques0347 extends Ques0347A{<br />
   void disp(){<br />
                 int y = init();<br />
                 System.out.println(y);<br />
  }<br />
  public static void main(String[] argv) {<br />
      Ques0347 ob = new Ques0347();<br />
        ob.disp();<br />
   }<br />
}</strong></p>
<p>An <a href="http://www.scjp-certification.com/7-key-points-about-abstract-classes-and-methods.html"><strong>abstract</strong></a> class can be inherited as same as a simple class by using the extends clause. In the given code, there are two classes named Ques0347A and Ques0347. The Ques0347A class is declared as abstract because it contains a declaration of an abstract method named disp. It also contains an instance variable x and an instance method init(). </p>
<p>The extends clause in the declaration of the Ques0347 class suggests that it is a subclass of the abstract class Ques0347A. As the Ques0347 class provides an implementation of the disp() method, it is not declared as abstract. Ques0347 being a subclass of the Ques0347A class inherits the init() method and the variable x.</p>
<p>Hence, it is necessary of we inherit an abstract class then the sublcass will implement all the methods that are left unimplemented in the superclass. </p>
<p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.scjp-certification.com%2Fwhat-will-happen-if-we-inherit-an-abstract-class.html&amp;title=What%20will%20happen%20if%20we%20inherit%20an%20abstract%20class%3F"><img src="http://www.scjp-certification.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a> </p>]]></content:encoded>
			<wfw:commentRss>http://www.scjp-certification.com/what-will-happen-if-we-inherit-an-abstract-class.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

