<?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; SCBCD</title>
	<atom:link href="http://www.scjp-certification.com/category/scbcd/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 is method overloading?</title>
		<link>http://www.scjp-certification.com/818.html</link>
		<comments>http://www.scjp-certification.com/818.html#comments</comments>
		<pubDate>Thu, 09 Dec 2010 05:44:55 +0000</pubDate>
		<dc:creator>Daisy Williams</dc:creator>
				<category><![CDATA[Java Facts]]></category>
		<category><![CDATA[SCBCD]]></category>
		<category><![CDATA[SCJP 1.5]]></category>
		<category><![CDATA[SCJP 1.6]]></category>
		<category><![CDATA[SCMAD]]></category>
		<category><![CDATA[SCWCD]]></category>

		<guid isPermaLink="false">http://www.scjp-certification.com/?p=818</guid>
		<description><![CDATA[Method overloading is a feature that allows a programmer to implement polymorphism in Java. In method overloading, the name of...]]></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%2F818.html"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.scjp-certification.com%2F818.html&amp;style=normal&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>Method overloading is a feature that allows a programmer to implement polymorphism in Java. In method overloading, the name of the methods are same, but they differ in number or type of parameters passed to them.</p>
<p>When an overloaded method is invoked, java examines the number or type of parameters passed to the method and matches it with actual arguments to decide which method is to be called.</p>
<p>The example below describes an overloaded method named show():</p>
<ol>
<li> int show(int i) {} </li>
<li>void show(String str) {}</li>
</ol>
<p>Here, method name is the same, but the method at (1) has an int parameter, and the method at (2) has a String parameter.</p>
<p>Note: A parameter is the list of variables passed in a method declaration and arguments are the actual values passed to these parameters when the method is called. Arguments must match with the parameters type and order.  </p>
<p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.scjp-certification.com%2F818.html&amp;title=What%20is%20method%20overloading%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/818.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>What is this keyword?</title>
		<link>http://www.scjp-certification.com/what-is-this-keyword.html</link>
		<comments>http://www.scjp-certification.com/what-is-this-keyword.html#comments</comments>
		<pubDate>Wed, 08 Dec 2010 05:44:15 +0000</pubDate>
		<dc:creator>Daisy Williams</dc:creator>
				<category><![CDATA[Java Facts]]></category>
		<category><![CDATA[SCBCD]]></category>
		<category><![CDATA[SCJP 1.5]]></category>
		<category><![CDATA[SCJP 1.6]]></category>
		<category><![CDATA[SCMAD]]></category>
		<category><![CDATA[SCWCD]]></category>
		<category><![CDATA[this keyword]]></category>

		<guid isPermaLink="false">http://www.scjp-certification.com/?p=816</guid>
		<description><![CDATA[The this keyword refers to the currently executing instance of a class. It is commonly used to access members 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-this-keyword.html"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.scjp-certification.com%2Fwhat-is-this-keyword.html&amp;style=normal&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>The <strong>this</strong> keyword refers to the currently executing instance of a class. It is commonly used to access members from within constructors, instance methods, and instance accessors. However, the static member functions do not have a this pointer. For example:</p>
<p><strong>using System;<br />
public class Students<br />
 {<br />
   public string name;<br />
   public string subcode;<br />
   //Constructor.<br />
   public Students(string name, string subcode)<br />
     {<br />
       //Use of this keyword to qualify members hidden by similar names.<br />
       this.name = name;<br />
       this.subcode = subcode;<br />
     }<br />
 }</strong> </p>
<p>The this keyword is used to pass an object as a parameter to other methods. For example:</p>
<p><strong>Cal_Marks(this);</strong>  </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-this-keyword.html&amp;title=What%20is%20this%20keyword%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-this-keyword.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to define methods with variable argument lists?</title>
		<link>http://www.scjp-certification.com/how-to-define-methods-with-variable-argument-lists.html</link>
		<comments>http://www.scjp-certification.com/how-to-define-methods-with-variable-argument-lists.html#comments</comments>
		<pubDate>Sun, 10 Oct 2010 05:48:11 +0000</pubDate>
		<dc:creator>Daisy Williams</dc:creator>
				<category><![CDATA[Java Facts]]></category>
		<category><![CDATA[SCBCD]]></category>
		<category><![CDATA[SCJP 1.5]]></category>
		<category><![CDATA[SCJP 1.6]]></category>
		<category><![CDATA[SCMAD]]></category>
		<category><![CDATA[SWCD]]></category>

		<guid isPermaLink="false">http://www.scjp-certification.com/?p=821</guid>
		<description><![CDATA[Java allows a method to take a variable number of arguments. This capability is referred to as var-args, varargs variable...]]></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%2Fhow-to-define-methods-with-variable-argument-lists.html"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.scjp-certification.com%2Fhow-to-define-methods-with-variable-argument-lists.html&amp;style=normal&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>Java allows a method to take a variable number of arguments. This capability is referred to as var-args, varargs variable arguments, variable-length argument lists, or variable-arity parameter.</p>
<p>The syntax for using variable argument lists is as follows:</p>
<p>void fun(int&#8230; z){}</p>
<p>The declaration of the varargs follows the type with an ellipse (&#8230;) and then name of the array.  </p>
<p>Limit: A method can have only one varargs, and it must be the last parameter in the method signature. An example of a varargs declaration is as follows: </p>
<p>void fun(int x, char&#8230; y)  </p>
<p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.scjp-certification.com%2Fhow-to-define-methods-with-variable-argument-lists.html&amp;title=How%20to%20define%20methods%20with%20variable%20argument%20lists%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/how-to-define-methods-with-variable-argument-lists.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>What are numeric promotions?</title>
		<link>http://www.scjp-certification.com/what-are-numeric-promotions.html</link>
		<comments>http://www.scjp-certification.com/what-are-numeric-promotions.html#comments</comments>
		<pubDate>Thu, 07 Oct 2010 05:37:33 +0000</pubDate>
		<dc:creator>Daisy Williams</dc:creator>
				<category><![CDATA[Java Facts]]></category>
		<category><![CDATA[SCBCD]]></category>
		<category><![CDATA[NUmeric Promotions]]></category>
		<category><![CDATA[SCJP 1.5]]></category>
		<category><![CDATA[SCJP 1.6]]></category>
		<category><![CDATA[SCMAD]]></category>
		<category><![CDATA[SCWCD]]></category>

		<guid isPermaLink="false">http://www.scjp-certification.com/?p=813</guid>
		<description><![CDATA[Numeric promotions are used to convert the operands in a numeric expression to a common type before an operation is...]]></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-numeric-promotions.html"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.scjp-certification.com%2Fwhat-are-numeric-promotions.html&amp;style=normal&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>Numeric promotions are used to convert the operands in a numeric expression to a common type before an operation is performed between the operands. Numeric promotion is a property of the specific definitions of the built-in operations and not a Java language feature. It is applied to the operands of an arithmetic operator. The two types of numeric promotions are as follows: </p>
<ol>
<li>Unary numeric promotion: The unary numeric promotion takes place in accordance with the following rules:</p>
<ol>
<li> If the operand is one of the following types: byte, short, or char, unary numeric promotion promotes it to a value of type int.</li>
<li> Otherwise, no promotion takes place. </li>
</ol>
</li>
<li> Binary numeric promotion: The binary numeric promotion takes place in accordance with the following rules:
<ol>
<li> If one of the two operands in a numeric expression is a primitive type double value, the other is promoted to a double value.</li>
<li> Otherwise, if one of the two operands in a numeric expression is a primitive type float value, the other is promoted to a float value.</li>
<li> Otherwise, if one of the two operands in a numeric expression is a primitive type long value, the other is promoted to a long value.</li>
<li> Otherwise, both operands are promoted to int values.</li>
</ol>
</li>
</ol>
<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-numeric-promotions.html&amp;title=What%20are%20numeric%20promotions%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-numeric-promotions.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>What is an interface?</title>
		<link>http://www.scjp-certification.com/807.html</link>
		<comments>http://www.scjp-certification.com/807.html#comments</comments>
		<pubDate>Tue, 05 Oct 2010 05:24:27 +0000</pubDate>
		<dc:creator>Daisy Williams</dc:creator>
				<category><![CDATA[Java Facts]]></category>
		<category><![CDATA[SCBCD]]></category>
		<category><![CDATA[SCJP 1.5]]></category>
		<category><![CDATA[SCJP 1.6]]></category>
		<category><![CDATA[SCMAD]]></category>

		<guid isPermaLink="false">http://www.scjp-certification.com/?p=807</guid>
		<description><![CDATA[An interface is a reference type that defines a contract. An interface body consists of method declarations and constants. All...]]></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%2F807.html"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.scjp-certification.com%2F807.html&amp;style=normal&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>An interface is a reference type that defines a contract. An interface body consists of method declarations and constants. All methods and constants in an interface are public. Interfaces are left completely unimplemented, i.e., no method in the interface is implemented. All methods of an interface are abstract and the method body is absent. A class may access one or more interfaces simultaneously. An interface is defined using the syntax below:</p>
<p><strong>access_modifier interface interface_name extends Super_interfaces{<br />
   return_type method1(parameter_list);<br />
   .<br />
   .<br />
   .<br />
   return_type methodn(parameter_list);<br />
   datatype variable1 = value;<br />
   .<br />
   .<br />
   .<br />
   datatype variablen = value;<br />
}</strong></p>
<p>The syntax defined above has two components: the interface declaration and the body of the interface. They are discussed in the following sections:</p>
<p><strong>An interface declaration</strong></p>
<p>An interface declaration consists of the following components:</p>
<ul>
<li>access_modifier: An interface can be declared by using the public access modifier or without any access modifier. When an interface is declared as public, it can be accessed by any class in any package. If no access modifier is used in the declaration, the interface is accessible only within the package in which it is declared.</li>
<li>interface interface_name: The keyword interface in the declaration tells the compiler that it is an interface declaration, and name of the interface is the one that follows the interface keyword. The name of an interface must be a valid identifier.</li>
<li> extends Super_interfaces: An interface can extend other interfaces in the same way as a class extends another class. The only difference between these two is that whereas a class is allowed to extend only one class, an interface can extend any number of interfaces. The extends keyword in an interface declaration tells the compiler that the interface extends the list of interfaces that follows the extends keyword.</li>
</ul>
<p>The interface body</p>
<p>The interface body contains method declarations for all the methods included in the interface. A method declared within an interface does not have a body, i.e., the method declaration ends with a semicolon. This is because an interface does not provide implementations for the methods declared within it. Apart from method declarations, an interface contains constant declarations. </p>
<p>All the constants defined in an interface are by default static and final. Therefore, there is no need to explicitly use these keywords to declare variables inside the interface body. All methods and variables in an interface are implicitly public if the interface is declared as public. It is also not necessary to declare the methods as abstract as well. The following example demonstrates how to define an interface:</p>
<p><strong>public interface MyInterface{<br />
   void method1();<br />
   int method2(int k);<br />
   int x = 1;<br />
   int y = 2;<br />
}</strong>  </p>
<p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.scjp-certification.com%2F807.html&amp;title=What%20is%20an%20interface%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/807.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>What are the differences between method overriding and method overloading?</title>
		<link>http://www.scjp-certification.com/what-are-the-differences-between-method-overriding-and-method-overloading-2.html</link>
		<comments>http://www.scjp-certification.com/what-are-the-differences-between-method-overriding-and-method-overloading-2.html#comments</comments>
		<pubDate>Mon, 04 Oct 2010 05:01:51 +0000</pubDate>
		<dc:creator>Daisy Williams</dc:creator>
				<category><![CDATA[Java Facts]]></category>
		<category><![CDATA[SCBCD]]></category>
		<category><![CDATA[SCJP 1.5]]></category>
		<category><![CDATA[SCJP 1.6]]></category>
		<category><![CDATA[SCMAD]]></category>
		<category><![CDATA[SCWCD]]></category>

		<guid isPermaLink="false">http://www.scjp-certification.com/?p=805</guid>
		<description><![CDATA[The following table summarizes the differences between method overriding and method overloading: Method Overriding Method Overloading Arguments of overridden methods...]]></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-differences-between-method-overriding-and-method-overloading-2.html"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.scjp-certification.com%2Fwhat-are-the-differences-between-method-overriding-and-method-overloading-2.html&amp;style=normal&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>The following table summarizes the differences between method overriding and method overloading:</p>
<table border="1">
<tbody>
<tr>
<th>Method Overriding</th>
<th>Method Overloading</th>
</tr>
<tr>
<td>Arguments of overridden methods cannot be changed.</td>
<td>Arguments of overloaded methods can be changed.</td>
</tr>
<tr>
<td>Method return types cannot be changed except covariant return types.</td>
<td>Return types can be changed.</td>
</tr>
<tr>
<td>Exceptions must not throw new or broader checked exceptions.</td>
<td>Exceptions can be changed.</td>
</tr>
<tr>
<td>It happens at runtime.</td>
<td>It happens at compile-time.</td>
</tr>
<tr>
<td>An object type determines which method is selected.</td>
<td>A reference type determines which method is selected.</td>
</tr>
</tbody>
</table>
<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-differences-between-method-overriding-and-method-overloading-2.html&amp;title=What%20are%20the%20differences%20between%20method%20overriding%20and%20method%20overloading%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-differences-between-method-overriding-and-method-overloading-2.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>What are the rules for method overriding?</title>
		<link>http://www.scjp-certification.com/what-are-the-rules-for-method-overriding-2.html</link>
		<comments>http://www.scjp-certification.com/what-are-the-rules-for-method-overriding-2.html#comments</comments>
		<pubDate>Sun, 03 Oct 2010 05:00:21 +0000</pubDate>
		<dc:creator>Daisy Williams</dc:creator>
				<category><![CDATA[Java Facts]]></category>
		<category><![CDATA[SCBCD]]></category>
		<category><![CDATA[method overriding]]></category>
		<category><![CDATA[SCJP 1.5]]></category>
		<category><![CDATA[SCJP 1.6]]></category>
		<category><![CDATA[SCMAD]]></category>
		<category><![CDATA[SCWCD]]></category>

		<guid isPermaLink="false">http://www.scjp-certification.com/?p=803</guid>
		<description><![CDATA[According to method overriding, an overriding method must follow the following rules: It must have the same argument list. It...]]></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-rules-for-method-overriding-2.html"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.scjp-certification.com%2Fwhat-are-the-rules-for-method-overriding-2.html&amp;style=normal&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>According to method overriding, an overriding method must follow the following rules:
<ul>
<li>It must have the same argument list.</li>
<li>It must have the same return type, new to Java 5. The return type can be a subclass &#8211; this is known as covariant return.</li>
<li>It must not have a more restrictive access modifier.</li>
<li> It may have a less restrictive access modifier.</li>
<li>It must not throw new or broader checked exceptions.</li>
<li>It may throw fewer or narrower checked exceptions, or any unchecked exception.</li>
</ul>
<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-rules-for-method-overriding-2.html&amp;title=What%20are%20the%20rules%20for%20method%20overriding%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-rules-for-method-overriding-2.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>What are the JavaBean listener naming rules?</title>
		<link>http://www.scjp-certification.com/what-are-the-javabean-listener-naming-rules-2.html</link>
		<comments>http://www.scjp-certification.com/what-are-the-javabean-listener-naming-rules-2.html#comments</comments>
		<pubDate>Sat, 02 Oct 2010 04:58:19 +0000</pubDate>
		<dc:creator>Daisy Williams</dc:creator>
				<category><![CDATA[Java Facts]]></category>
		<category><![CDATA[SCBCD]]></category>
		<category><![CDATA[SCJP 1.5]]></category>
		<category><![CDATA[SCJP 1.6]]></category>
		<category><![CDATA[SCWCD]]></category>

		<guid isPermaLink="false">http://www.scjp-certification.com/?p=801</guid>
		<description><![CDATA[JavaBean is a reusable software component that can be visually manipulated using the builder tool. The following are the JavaBean...]]></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-javabean-listener-naming-rules-2.html"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.scjp-certification.com%2Fwhat-are-the-javabean-listener-naming-rules-2.html&amp;style=normal&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>JavaBean is a reusable software component that can be visually manipulated using the builder tool. The following are the JavaBean Listener naming rules:
<ul>
<li>Listener method names that are used to register a listener with an event source must use the prefix add followed by the listener type. </li>
<li>Listener method names that are used to remove a listener must use the prefix remove followed by the listener type.</li>
<li>The type of listener to be added or removed must be passed as the argument to the method.</li>
<li>Listener method names must end with the word &#8220;Listener&#8221;.</li>
</ul>
<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-javabean-listener-naming-rules-2.html&amp;title=What%20are%20the%20JavaBean%20listener%20naming%20rules%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-javabean-listener-naming-rules-2.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>What are the JavaBean property naming rules?</title>
		<link>http://www.scjp-certification.com/what-are-the-javabean-property-naming-rules.html</link>
		<comments>http://www.scjp-certification.com/what-are-the-javabean-property-naming-rules.html#comments</comments>
		<pubDate>Fri, 01 Oct 2010 04:54:02 +0000</pubDate>
		<dc:creator>Daisy Williams</dc:creator>
				<category><![CDATA[Java Facts]]></category>
		<category><![CDATA[SCBCD]]></category>
		<category><![CDATA[java bean ejb 3.0]]></category>
		<category><![CDATA[SCJP 1.5]]></category>
		<category><![CDATA[SCJP 1.6]]></category>

		<guid isPermaLink="false">http://www.scjp-certification.com/?p=799</guid>
		<description><![CDATA[JavaBean is a reusable software component that can be visually manipulated using the builder tool. The JavaBean property naming rules...]]></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-javabean-property-naming-rules.html"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.scjp-certification.com%2Fwhat-are-the-javabean-property-naming-rules.html&amp;style=normal&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>JavaBean is a reusable software component that can be visually manipulated using the builder tool. The JavaBean property naming rules are as follows:
<ul>
<li>Setter method signatures must be marked public, with a void return type and an argument that represents the property type.</li>
<li>Getter method signatures must be marked public, take no arguments, and have a return type that matches the argument type of the setter method for that property.</li>
</ul>
<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-javabean-property-naming-rules.html&amp;title=What%20are%20the%20JavaBean%20property%20naming%20rules%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-javabean-property-naming-rules.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>What is the getHandle() method?</title>
		<link>http://www.scjp-certification.com/what-is-the-gethandle-method-2.html</link>
		<comments>http://www.scjp-certification.com/what-is-the-gethandle-method-2.html#comments</comments>
		<pubDate>Mon, 20 Sep 2010 02:40:31 +0000</pubDate>
		<dc:creator>Daisy Williams</dc:creator>
				<category><![CDATA[SCBCD]]></category>

		<guid isPermaLink="false">http://www.scjp-certification.com/?p=692</guid>
		<description><![CDATA[The getHandle() method is used to obtain a serializable handle to the timer. The handle belongs to the TimerHandle interface...]]></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-gethandle-method-2.html"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.scjp-certification.com%2Fwhat-is-the-gethandle-method-2.html&amp;style=normal&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>The getHandle() method is used to obtain a serializable handle to the timer. The handle belongs to the TimerHandle interface and can be used later to re-obtain the timer reference. The general form of this method is as follows: </p>
<p>public TimerHandle getHandle() throws java.lang.IllegalStateException, NoSuchObjectLocalException, EJBException </p>
<p>This method returns a serializable handle to the timer. It will throw the java.lang.IllegalStateException if this method is invoked while the instance is in a state that does not allow access to this method. It will throw the NoSuchObjectLocalException if invoked on a timer that has expired or cancelled. It will throw the EJBException if this method could not complete due to a system-level failure.</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-gethandle-method-2.html&amp;title=What%20is%20the%20getHandle%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-gethandle-method-2.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>What is the Web service endpoint interface?</title>
		<link>http://www.scjp-certification.com/what-is-the-web-service-endpoint-interface.html</link>
		<comments>http://www.scjp-certification.com/what-is-the-web-service-endpoint-interface.html#comments</comments>
		<pubDate>Fri, 27 Aug 2010 10:30:20 +0000</pubDate>
		<dc:creator>Daisy Williams</dc:creator>
				<category><![CDATA[SCBCD]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[scbcd certification]]></category>
		<category><![CDATA[scbcd dump]]></category>
		<category><![CDATA[scbcd exam]]></category>
		<category><![CDATA[scbcd pdf]]></category>
		<category><![CDATA[scbcd questions]]></category>
		<category><![CDATA[scbcd tutorial]]></category>

		<guid isPermaLink="false">http://www.scjp-certification.com/?p=761</guid>
		<description><![CDATA[The Web service endpoint interface is used to define the &#8216;Web services methods&#8217;. It is necessary for an enterprise bean...]]></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-web-service-endpoint-interface.html"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.scjp-certification.com%2Fwhat-is-the-web-service-endpoint-interface.html&amp;style=normal&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>The Web service endpoint interface is used to define the &#8216;Web services methods&#8217;. It is necessary for an enterprise bean that implements the Web service to implement methods having the same signature, as the methods of the Web service endpoint interface. There are a numbers of restrictions exist on which types to use as parameters and results of service endpoint interface methods. It provides the client&#8217;s view of the Web service, hiding the stateless session bean from the client. A Web service endpoint interface must conform to the rules of a JAX-RPC service definition interface. A Web service endpoint interface must conform to the following rules:<br />
It should extend the java.rmi.Remote interface.<br />
It must not have constant declarations, such as public, final, or static.<br />
The methods must throw the java.rmi.RemoteException or one of its subclasses. Method parameters and return types must be supported JAX-RPC types.<br />
For example:</p>
<p>package bookaccount;<br />
import java.rmi.RemoteException;<br />
import java.rmi.Remote;</p>
<p>public interface BookAccount extends Remote {</p>
<p>    public String sayBook(String name) throws RemoteException;<br />
} </p>
<p>Here, BookAccount is the Web service endpoint interface and the class that implements this interface must implement the sayBook() method defined by the BookAccount interface. The interface decouples the implementation class from the type of client access. For example, if a remote and home interface is added to a class named BookAccountBean, the methods of the BookAccountBean class could also be accessed by remote clients.</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-web-service-endpoint-interface.html&amp;title=What%20is%20the%20Web%20service%20endpoint%20interface%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-web-service-endpoint-interface.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>What is a remote client?</title>
		<link>http://www.scjp-certification.com/what-is-a-remote-client.html</link>
		<comments>http://www.scjp-certification.com/what-is-a-remote-client.html#comments</comments>
		<pubDate>Thu, 26 Aug 2010 10:17:11 +0000</pubDate>
		<dc:creator>Daisy Williams</dc:creator>
				<category><![CDATA[SCBCD]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[scbcd certification]]></category>
		<category><![CDATA[scbcd dump]]></category>
		<category><![CDATA[scbcd exam]]></category>
		<category><![CDATA[scbcd pdf]]></category>
		<category><![CDATA[scbcd questions]]></category>
		<category><![CDATA[scbcd tutorial]]></category>

		<guid isPermaLink="false">http://www.scjp-certification.com/?p=759</guid>
		<description><![CDATA[A remote client is a location independent client of an enterprise bean. A client that runs in the same JVM...]]></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-a-remote-client.html"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.scjp-certification.com%2Fwhat-is-a-remote-client.html&amp;style=normal&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>A remote client is a location independent client of an enterprise bean. A client that runs in the same JVM as a bean instance uses the same API to access the bean as a client that runs in a different JVM on the same or different machine. The remote client uses a remote interface that specifies the remote business methods that a client can call on an enterprise bean. It also uses a remote home interface that specifies the methods used by remote clients for locating, creating, and removing instances of enterprise bean classes. The following are the characteristics of a remote client:<br />
It is allowed to run on a different machine and a different Java virtual machine (JVM) than the enterprise bean it accesses.</p>
<p>It can be used as a web component, an application client, or another enterprise bean.</p>
<p>The location of the enterprise bean is transparent to the remote client.</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-a-remote-client.html&amp;title=What%20is%20a%20remote%20client%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-a-remote-client.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to build an enterprise bean that allows only local access?</title>
		<link>http://www.scjp-certification.com/how-to-build-an-enterprise-bean-that-allows-only-local-access.html</link>
		<comments>http://www.scjp-certification.com/how-to-build-an-enterprise-bean-that-allows-only-local-access.html#comments</comments>
		<pubDate>Tue, 24 Aug 2010 10:17:32 +0000</pubDate>
		<dc:creator>Daisy Williams</dc:creator>
				<category><![CDATA[SCBCD]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[scbcd certification]]></category>
		<category><![CDATA[scbcd dump]]></category>
		<category><![CDATA[scbcd exam]]></category>
		<category><![CDATA[scbcd pdf]]></category>
		<category><![CDATA[scbcd questions]]></category>
		<category><![CDATA[scbcd tutorial]]></category>

		<guid isPermaLink="false">http://www.scjp-certification.com/?p=758</guid>
		<description><![CDATA[Local accessibility is the default accessibility of an enterprise bean. If the bean&#8217;s business interface is not decorated with @Local...]]></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%2Fhow-to-build-an-enterprise-bean-that-allows-only-local-access.html"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.scjp-certification.com%2Fhow-to-build-an-enterprise-bean-that-allows-only-local-access.html&amp;style=normal&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>Local accessibility is the default accessibility of an enterprise bean. If the bean&#8217;s business interface is not decorated with @Local or @Remote, and the bean class does not specify the interface using @Local or @Remote, the business interface is by default a local interface. An enterprise bean that allows only local access can be created in any of the following two ways:</p>
<p>By annotating the business interface of the enterprise bean as a @Local interface: </p>
<p>@Local<br />
public interface InterfaceName { &#8230; } </p>
<p>By decorating the bean class with @Local and specifying the interface name.</p>
<p>@Local(InterfaceName.class)<br />
public class BeanName implements InterfaceName { &#8230; }  </p>
<p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.scjp-certification.com%2Fhow-to-build-an-enterprise-bean-that-allows-only-local-access.html&amp;title=How%20to%20build%20an%20enterprise%20bean%20that%20allows%20only%20local%20access%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/how-to-build-an-enterprise-bean-that-allows-only-local-access.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to create an enterprise bean that allows remote access?</title>
		<link>http://www.scjp-certification.com/how-to-create-an-enterprise-bean-that-allows-remote-access.html</link>
		<comments>http://www.scjp-certification.com/how-to-create-an-enterprise-bean-that-allows-remote-access.html#comments</comments>
		<pubDate>Mon, 23 Aug 2010 09:59:48 +0000</pubDate>
		<dc:creator>Daisy Williams</dc:creator>
				<category><![CDATA[SCBCD]]></category>
		<category><![CDATA[scbcd certification]]></category>
		<category><![CDATA[scbcd dump]]></category>
		<category><![CDATA[scbcd exam]]></category>
		<category><![CDATA[scbcd pdf]]></category>
		<category><![CDATA[scbcd questions]]></category>
		<category><![CDATA[scbcd tutorial]]></category>

		<guid isPermaLink="false">http://www.scjp-certification.com/?p=757</guid>
		<description><![CDATA[Remote access allows an enterprise bean to run on a different machine with a different Java virtual machine (JVM). 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%2Fhow-to-create-an-enterprise-bean-that-allows-remote-access.html"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.scjp-certification.com%2Fhow-to-create-an-enterprise-bean-that-allows-remote-access.html&amp;style=normal&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>Remote access allows an enterprise bean to run on a different machine with a different Java virtual machine (JVM). An enterprise bean that allows remote access can be created in any of the following ways:<br />
By decorating the business interface of the enterprise bean with the @Remote annotation:</p>
<p>@Remote<br />
public interface InterfaceName { &#8230; } </p>
<p>By decorating the bean class with @Remote, and specifying the business interface or interfaces:</p>
<p>@Remote(InterfaceName.class)<br />
public class BeanName implements InterfaceName { &#8230; }   </p>
<p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.scjp-certification.com%2Fhow-to-create-an-enterprise-bean-that-allows-remote-access.html&amp;title=How%20to%20create%20an%20enterprise%20bean%20that%20allows%20remote%20access%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/how-to-create-an-enterprise-bean-that-allows-remote-access.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>What are the characteristics of a message-driven bean?</title>
		<link>http://www.scjp-certification.com/what-are-the-characteristics-of-a-message-driven-bean.html</link>
		<comments>http://www.scjp-certification.com/what-are-the-characteristics-of-a-message-driven-bean.html#comments</comments>
		<pubDate>Mon, 21 Jun 2010 03:37:46 +0000</pubDate>
		<dc:creator>Daisy Williams</dc:creator>
				<category><![CDATA[SCBCD]]></category>

		<guid isPermaLink="false">http://www.scjp-certification.com/what-are-the-characteristics-of-a-message-driven-bean.html</guid>
		<description><![CDATA[Following are the characteristics of a message-driven bean: It executes upon receipt of a single client message. It is invoked...]]></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-characteristics-of-a-message-driven-bean.html"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.scjp-certification.com%2Fwhat-are-the-characteristics-of-a-message-driven-bean.html&amp;style=normal&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>Following are the characteristics of a message-driven bean:<br />
It executes upon receipt of a single client message.<br />
It is invoked asynchronously.<br />
It is relatively short-lived.<br />
It does not represent directly shared data in the database, but it can access and update this data.<br />
It can be transaction-aware.<br />
It is stateless.<br />
Client components invoke methods directly and they do not locate message-driven beans.<br />
It allows JMS messages to be sent asynchronously.<br />
A message can be delivered to a message-driven bean within a transaction context.<br />
The instance variables of the message-driven bean instance can contain some state across the handling of client messages.</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-characteristics-of-a-message-driven-bean.html&amp;title=What%20are%20the%20characteristics%20of%20a%20message-driven%20bean%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-characteristics-of-a-message-driven-bean.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Which of the following containers is used to manage the execution of JSP page and servlet components for Java EE applications?</title>
		<link>http://www.scjp-certification.com/which-of-the-following-containers-is-used-to-manage-the-execution-of-jsp-page-and-servlet-components-for-java-ee-applications.html</link>
		<comments>http://www.scjp-certification.com/which-of-the-following-containers-is-used-to-manage-the-execution-of-jsp-page-and-servlet-components-for-java-ee-applications.html#comments</comments>
		<pubDate>Mon, 24 May 2010 07:14:21 +0000</pubDate>
		<dc:creator>Daisy Williams</dc:creator>
				<category><![CDATA[SCBCD]]></category>
		<category><![CDATA[310-091]]></category>
		<category><![CDATA[cx310-091]]></category>
		<category><![CDATA[java beans]]></category>
		<category><![CDATA[mosk exam questions]]></category>
		<category><![CDATA[scbcd free practie test]]></category>
		<category><![CDATA[Web container]]></category>

		<guid isPermaLink="false">http://www.scjp-certification.com/?p=718</guid>
		<description><![CDATA[A Web container B EJB container C Application client container D Applet container E Java EE server]]></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%2Fwhich-of-the-following-containers-is-used-to-manage-the-execution-of-jsp-page-and-servlet-components-for-java-ee-applications.html"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.scjp-certification.com%2Fwhich-of-the-following-containers-is-used-to-manage-the-execution-of-jsp-page-and-servlet-components-for-java-ee-applications.html&amp;style=normal&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p> A Web container<br />
 B EJB container<br />
 C Application client container<br />
 D Applet container<br />
 E Java EE server   </p>
<p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.scjp-certification.com%2Fwhich-of-the-following-containers-is-used-to-manage-the-execution-of-jsp-page-and-servlet-components-for-java-ee-applications.html&amp;title=Which%20of%20the%20following%20containers%20is%20used%20to%20manage%20the%20execution%20of%20JSP%20page%20and%20servlet%20components%20for%20Java%20EE%20applications%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/which-of-the-following-containers-is-used-to-manage-the-execution-of-jsp-page-and-servlet-components-for-java-ee-applications.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>What are the begin() and commit() methods of the EntityTransaction interface?</title>
		<link>http://www.scjp-certification.com/what-are-the-begin-and-commit-methods-of-the-entitytransaction-interface.html</link>
		<comments>http://www.scjp-certification.com/what-are-the-begin-and-commit-methods-of-the-entitytransaction-interface.html#comments</comments>
		<pubDate>Sat, 22 May 2010 02:42:51 +0000</pubDate>
		<dc:creator>Daisy Williams</dc:creator>
				<category><![CDATA[SCBCD]]></category>

		<guid isPermaLink="false">http://www.scjp-certification.com/?p=705</guid>
		<description><![CDATA[begin(): This method is used to start a new transaction. The general form of the method is as follows: void...]]></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-begin-and-commit-methods-of-the-entitytransaction-interface.html"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.scjp-certification.com%2Fwhat-are-the-begin-and-commit-methods-of-the-entitytransaction-interface.html&amp;style=normal&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>begin(): This method is used to start a new transaction. The general form of the method is as follows: </p>
<p>void begin()</p>
<p>This method will throw an IllegalStateException if it is called on an active transaction.</p>
<p>commit(): This method is used to commit a transaction and write any unflushed data to a database. The following is the general form of the commit() method:</p>
<p>void commit()</p>
<p>This method will throw a RollbackException if the commit operation fails due to some reason. This method will throw an IllegalStateException if called on a non-active transaction.</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-begin-and-commit-methods-of-the-entitytransaction-interface.html&amp;title=What%20are%20the%20begin%28%29%20and%20commit%28%29%20methods%20of%20the%20EntityTransaction%20interface%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-begin-and-commit-methods-of-the-entitytransaction-interface.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>What is the getTransaction() method?</title>
		<link>http://www.scjp-certification.com/what-is-the-gettransaction-method.html</link>
		<comments>http://www.scjp-certification.com/what-is-the-gettransaction-method.html#comments</comments>
		<pubDate>Fri, 21 May 2010 02:42:54 +0000</pubDate>
		<dc:creator>Daisy Williams</dc:creator>
				<category><![CDATA[SCBCD]]></category>

		<guid isPermaLink="false">http://www.scjp-certification.com/?p=707</guid>
		<description><![CDATA[The getTransaction() method is used to get the instance of the EntityTransaction interface. The following is the general form of...]]></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-gettransaction-method.html"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.scjp-certification.com%2Fwhat-is-the-gettransaction-method.html&amp;style=normal&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>The getTransaction() method is used to get the instance of the EntityTransaction interface. The following is the general form of the method:</p>
<p>EntityTransaction getTransaction() </p>
<p>This method returns an EntityTransaction instance. This instance may be used serially to begin and commit multiple transactions. This method will throw an IllegalStateException if invoked on a JTA EntityManager.  </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-gettransaction-method.html&amp;title=What%20is%20the%20getTransaction%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-gettransaction-method.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>What is the isActive() method?</title>
		<link>http://www.scjp-certification.com/what-is-the-isactive-method.html</link>
		<comments>http://www.scjp-certification.com/what-is-the-isactive-method.html#comments</comments>
		<pubDate>Thu, 20 May 2010 02:42:55 +0000</pubDate>
		<dc:creator>Daisy Williams</dc:creator>
				<category><![CDATA[SCBCD]]></category>

		<guid isPermaLink="false">http://www.scjp-certification.com/?p=709</guid>
		<description><![CDATA[The isActive() method is used to indicate whether a transaction is in progress. This method is used by the begin(),...]]></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-isactive-method.html"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.scjp-certification.com%2Fwhat-is-the-isactive-method.html&amp;style=normal&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>The isActive() method is used to indicate whether a transaction is in progress. This method is used by the begin(), commit(), rollback(), setRollbackOnly(), and getRollbackOnly() methods to perform execution. The following is the general syntax of the method: </p>
<p>boolean isActive()</p>
<p>This method will throw the PersistenceException if an unexpected error condition is encountered.</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-isactive-method.html&amp;title=What%20is%20the%20isActive%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-isactive-method.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>What is persistence unit?</title>
		<link>http://www.scjp-certification.com/what-is-persistence-unit.html</link>
		<comments>http://www.scjp-certification.com/what-is-persistence-unit.html#comments</comments>
		<pubDate>Wed, 19 May 2010 02:42:57 +0000</pubDate>
		<dc:creator>Daisy Williams</dc:creator>
				<category><![CDATA[SCBCD]]></category>

		<guid isPermaLink="false">http://www.scjp-certification.com/?p=711</guid>
		<description><![CDATA[Persistence unit packaging specifies that a persistent unit can be packaged as part of a WAR or EJB JAR file,...]]></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-persistence-unit.html"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.scjp-certification.com%2Fwhat-is-persistence-unit.html&amp;style=normal&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>Persistence unit packaging specifies that a persistent unit can be packaged as part of a WAR or EJB JAR file, or can be packaged as a JAR file that can then be included in a WAR or EAR file. The rules for packaging a persistent unit are given below:
<ol>
<li>If a persistent unit is packaged as a set of classes in an EJB JAR file, persistence.xml should be put in the EJB JAR&#8217;s META-INF directory.</li>
<li>If a persistence unit is packaged as a set of classes in a WAR file, persistence.xml should be located in the WAR file&#8217;s WEB-INF/classes/META-INF directory.</li>
<li>If a persistence unit is packaged in a JAR file that will be included in a WAR or EAR file, the JAR file should be located at the following locations:
<ol type='i'>
<li>In the WEB-INF/lib directory of a WAR</li>
<li>In the top-level of an EAR file</li>
<li>In the EAR file&#8217;s library directory</li>
</ol>
</ol>
<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-persistence-unit.html&amp;title=What%20is%20persistence%20unit%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-persistence-unit.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>What is persistence.xml?</title>
		<link>http://www.scjp-certification.com/what-is-persistence-xml.html</link>
		<comments>http://www.scjp-certification.com/what-is-persistence-xml.html#comments</comments>
		<pubDate>Tue, 18 May 2010 02:43:01 +0000</pubDate>
		<dc:creator>Daisy Williams</dc:creator>
				<category><![CDATA[SCBCD]]></category>

		<guid isPermaLink="false">http://www.scjp-certification.com/?p=713</guid>
		<description><![CDATA[The persistence.xml file contains the configuration information of one or several persistent units. This file must be present inside 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-persistence-xml.html"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.scjp-certification.com%2Fwhat-is-persistence-xml.html&amp;style=normal&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>The persistence.xml file contains the configuration information of one or several persistent units. This file must be present inside the META-INF directory of the ejb deployment. The persistence.xml file has
<persistence> as the root element of the file. This element has two attributes, namely name and transaction-type. The name attribute is mandatory and defines the name of the persistence unit. The transaction-type attribute is optional and specifies whether Java EE transactions (JTA) or the resource local (RESOURCE_LOCAL) transaction will be used. The default transaction type is JTA. The
<persistence-unit> element has the following optional sub-elements:</p>
<ul>
<li>
<provider></li>
<li><description></li>
<li><jta-data-source></li>
<li><non-jta-data-source></li>
<li>
<mapping-file></li>
<li><jar-file></li>
<li><class></li>
<li>
<properties></li>
<li><exclude-unlisted-classes></li>
</ul>
<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-persistence-xml.html&amp;title=What%20is%20persistence.xml%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-persistence-xml.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>What is entity manager interface?</title>
		<link>http://www.scjp-certification.com/what-is-entity-manager-interface.html</link>
		<comments>http://www.scjp-certification.com/what-is-entity-manager-interface.html#comments</comments>
		<pubDate>Mon, 17 May 2010 02:43:04 +0000</pubDate>
		<dc:creator>Daisy Williams</dc:creator>
				<category><![CDATA[SCBCD]]></category>

		<guid isPermaLink="false">http://www.scjp-certification.com/?p=715</guid>
		<description><![CDATA[The EntityManager interface contains methods to interact with the persistence context. The life of an entity instance is managed inside...]]></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-entity-manager-interface.html"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.scjp-certification.com%2Fwhat-is-entity-manager-interface.html&amp;style=normal&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>The EntityManager interface contains methods to interact with the persistence context. The life of an entity instance is managed inside the persistence context. An entity manager uses the interface to create, manage and remove the entity instance. This interface has methods to find entities using their primary keys, to find whether or not an EntityManager is open, and to make an entity instance managed and persistent.  </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-entity-manager-interface.html&amp;title=What%20is%20entity%20manager%20interface%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-entity-manager-interface.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

