<?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>Rocking Team &#187; Tutorials</title>
	<atom:link href="http://www.rockingteam.com/category/computer/tutorials/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.rockingteam.com</link>
	<description>Technology @ Your Finger Tips... Computer, Web, Gadget, Mobile, Automobile, Movie Releated News Articles..</description>
	<lastBuildDate>Sun, 05 Feb 2012 17:28:18 +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>Java Tutorial : The Nested try catch Block</title>
		<link>http://www.rockingteam.com/2010/04/java-tutorial-the-nested-try-catch-block/</link>
		<comments>http://www.rockingteam.com/2010/04/java-tutorial-the-nested-try-catch-block/#comments</comments>
		<pubDate>Fri, 23 Apr 2010 18:02:34 +0000</pubDate>
		<dc:creator>Alex Jose</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[example]]></category>
		<category><![CDATA[Java Tutorial]]></category>
		<category><![CDATA[Nested try catch]]></category>

		<guid isPermaLink="false">http://www.rockingteam.com/?p=3029</guid>
		<description><![CDATA[The nested try-catch block is used to handle exceptions in Java applications. You can enclose a try-catch block in an existing try-catch block. The enclosed try-catch block is called the inner try-catch block, and the enclosing block is called the outer trycatch block. If the inner try block does not contain the catch statement to [...]]]></description>
			<content:encoded><![CDATA[<p>The nested try-catch block is used to handle exceptions in Java applications. You can enclose a try-catch block in an existing try-catch block. The enclosed try-catch block is called the inner try-catch block, and the enclosing block is called the outer trycatch block. If the inner try block does not contain the catch statement to handle an exception then the catch statement in the outer block is checked for the exception handler. The following syntax shows how to create a nested try-catch block:</p>
<blockquote><p><code>class SuperClass<br />
{<br />
public static void main(String a[])<br />
{<br />
&lt;code&gt;;<br />
try<br />
{<br />
&lt;code&gt;;<br />
try<br />
{<br />
&lt;code&gt;;<br />
}<br />
catch( &lt;var&gt;)<br />
{<br />
&lt;code&gt;;<br />
}<br />
}<br />
catch( &lt;var&gt;)<br />
{<br />
&lt;code&gt;;<br />
}<br />
}<br />
}</code></p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.rockingteam.com/2010/04/java-tutorial-the-nested-try-catch-block/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Java Tutorial : The super and this Keywords</title>
		<link>http://www.rockingteam.com/2010/03/java-tutorial-the-super-and-this-keywords/</link>
		<comments>http://www.rockingteam.com/2010/03/java-tutorial-the-super-and-this-keywords/#comments</comments>
		<pubDate>Fri, 19 Mar 2010 17:44:24 +0000</pubDate>
		<dc:creator>Alex Jose</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[Java Tutorial]]></category>
		<category><![CDATA[Keyword]]></category>
		<category><![CDATA[Super]]></category>
		<category><![CDATA[This]]></category>

		<guid isPermaLink="false">http://www.rockingteam.com/?p=2782</guid>
		<description><![CDATA[Java provides the super keyword that enables a subclass to refer to its superclass. The super keyword is used to access: superclass constructors superclass methods and variables Consider a Java application, which consists of multiple classes. The subclass in the application needs to reuse the constructor of the superclass. In this application, super keyword is used as [...]]]></description>
			<content:encoded><![CDATA[<p>Java provides the super keyword that enables a subclass to refer to its superclass. The super keyword is used to access:</p>
<ul>
<li>superclass constructors</li>
<li>superclass methods and variables</li>
</ul>
<p>Consider a Java application, which consists of multiple classes. The subclass in the application needs to reuse the constructor of the superclass. In this application, super keyword is used as a method and invokes the constructor of its immediate superclass. The syntax to invoke the constructor of a superclass using the super() method is:</p>
<blockquote><p>super (&lt;parameter1&gt;, &lt;parameter 2&gt;,..,&lt;parameterN&gt;);</p></blockquote>
<p>In the above syntax, &lt;parameter1&gt;, &lt;parameter 2&gt;,..,&lt;parameterN&gt; refer to the list of parameters that you need to pass to the constructor of the superclass.</p>
<p>If no parameters are passed to the super() method, it invokes the default constructor of the superclass. If the superclass contains the overloaded constructor, you can pass parameters to the super() method to invoke a particular constructor. When you use the super() method in the constructor of the subclass, it should be the first executable statement in the constructor.</p>
<p>Consider a Java application, in which both, superclass and subclass, have member variables with the same name. In this application, the super keyword is used to access the member variables of the superclass. The syntax to access the member variable of a superclass is:</p>
<blockquote><p>super.&lt;variable&gt;;</p></blockquote>
<p>The subclass can also access the member methods of the superclass using the super keyword. The following code snippet shows the Literature subclass accessing the member variable of the Book superclass:</p>
<blockquote><p>class Book<br />
{<br />
int categoryCode;<br />
}<br />
class Literature extends Book<br />
{<br />
int categoryCode;<br />
public void input(int c1, int c2)<br />
{<br />
super.categoryCode=c1;<br />
categoryCode=c2;<br />
}<br />
}</p></blockquote>
<p>In the above code snippet, the Book class contains the categoryCode variable to store the category of a book, such as literature, science, fiction, suspense, and history. The Literature class also contains the categoryCode variable to store the subcategory of a book. For example for literature category, the subcategories are English, French, Hindi, and Russian. The input() method accepts two values for c1 and c2 variables. The value that you pass for c1 variable is assigned to the superclass variable whereas the value of the c2 variable is assigned to the subclass variable. The this keyword is used to refer to the current object. You can use the this keyword when a method defined in a Java class needs to refer to the object used to invoke that method, as shown in the following code snippet:</p>
<blockquote><p>Book(int bcode, double bprice)<br />
{<br />
this.bookCode=bcode;<br />
this.bookPrice=bprice;<br />
}</p></blockquote>
<p>In the above code snippet, the this keyword refers to the object that invokes the Book() constructor.</p>
<p>Another situation where you can use the this keyword is when the local and instance variables have the same name. For example, the Book class has two member variables, bookCode and bookPrice. The constructor of the Book class is used to initialize its member. If the formal parameters passed to the constructor have the same name as instance variables, you need to use the this keyword to refer to the<br />
instance variables. The following code snippet shows how to use the this keyword when instance and formal parameters have the same name:</p>
<blockquote><p>Book(int bcode, double bprice)<br />
{<br />
this.bcode=bcode;<br />
this.bprice=bprice;<br />
}</p></blockquote>
<p>In the above code snippet, this keyword refers to the instance variables, bcode and bprice. The values of the formal parameters, bcode and bprice of the Book() constructor are assigned to the instance variables.</p>
<p>In addition, you can use the this keyword in a constructor of a class to invoke another constructor of the class. Unlike the super keyword, the this keyword can invoke the constructor of the same class. The following code snippet shows how to invoke a constructor using the this keyword:</p>
<blockquote><p>class Book<br />
{<br />
public Book(String bname)<br />
{<br />
this(bname, 1001);<br />
}<br />
public Book(String bname, int bcode)<br />
{<br />
bookName=bname;<br />
bookCode=bcode;<br />
}<br />
}</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.rockingteam.com/2010/03/java-tutorial-the-super-and-this-keywords/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Java Tutorial : Implementing Interfaces &#8211; Example</title>
		<link>http://www.rockingteam.com/2010/01/java-tutorial-implementing-interfaces-example/</link>
		<comments>http://www.rockingteam.com/2010/01/java-tutorial-implementing-interfaces-example/#comments</comments>
		<pubDate>Fri, 15 Jan 2010 07:00:00 +0000</pubDate>
		<dc:creator>Alex Jose</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[Examples]]></category>
		<category><![CDATA[Implementing Interfaces in Java]]></category>
		<category><![CDATA[Interfaces In Java]]></category>
		<category><![CDATA[Java Tutorial]]></category>

		<guid isPermaLink="false">http://www.rockingteam.com/?p=2511</guid>
		<description><![CDATA[David Johnson is the owner of Safest Software Co. that deals in buying and selling of hardware and software computer products. Don Allen, an employee of the Safest Software Co. is assigned the task to develop a Java application to keep track of the inventory of the computer hardware and software products. The application consists [...]]]></description>
			<content:encoded><![CDATA[<p>David Johnson is the owner of Safest Software Co. that deals in buying and selling of hardware and software computer products. Don Allen, an employee of the Safest Software Co. is assigned the task to develop a Java application to keep track of the inventory of the computer hardware and software products.</p>
<p>The application consists of an interface, <em><strong>ItemCount</strong></em> that includes the declaration of methods to be used in the superclass and subclass. The application includes the <em><strong>SoftwareProducts</strong></em> class that accepts the number of software items and calculates the<br />
number.</p>
<p>The <em><strong>HardwareProducts</strong></em> class is included to accept the number of hardware items and to calculate the number. The <em><strong>Products</strong></em> class is included to create objects for the <em><strong>SoftwareProducts</strong></em> and <em><strong>HardwareProducts</strong></em> classes.<br />
You can use the following code to create the <em><strong>ItemCount</strong></em> interface in Java:</p>
<blockquote><p>interface ItemCount //Defining the interface.<br />
{<br />
//Defining abstract methods in the Billing interface.<br />
public void noOfItems();<br />
}</p></blockquote>
<p>In the preceding code, the <em><strong>ItemCount</strong></em> interface contains the <em><strong>noOfItems()</strong></em> abstract method that needs to be implemented in the classes that implement the<em><strong> ItemCount</strong></em> interface.<br />
You can use the following code to create the <em><strong>SoftwareProducts</strong></em> superclass:</p>
<blockquote><p>class SoftwareProducts implements ItemCount<br />
{<br />
// Defining the data members.<br />
int os= 60;<br />
int oracle = 20;<br />
int jav = 15;<br />
int tot;<br />
//Defining the methods.<br />
public void calculate()<br />
{<br />
tot = os + oracle + jav;<br />
}<br />
public void noOfItems() // Method declared publicly in the interface.<br />
{<br />
System.out.println();<br />
System.out.println(&#8221; &#8220;+&#8221;Total number of software products purchased is :<br />
&#8220;+ tot);}<br />
}</p></blockquote>
<p>In the preceding code, the <em><strong>SoftwareProducts</strong></em> superclass defines the data members, <em><strong>os</strong></em>, <em><strong>oracle</strong></em>, and <em><strong>jav</strong></em> and the methods, <em><strong>calculate()</strong></em> and <em><strong>noOfItems()</strong></em>. These data members store the number of software products, Operating System, Oracle, and Java. The <em><strong>noOfItems()</strong></em> method displays the total number of the software items purchased by David.<br />
You can use the following code to create the HardwareProducts class:</p>
<blockquote><p>class HardwareProducts implements ItemCount<br />
{<br />
// Defining the data members.<br />
int printer = 20;<br />
int speaker = 12;<br />
int harddisk = 25;<br />
int htot;<br />
public void calculate1()<br />
{<br />
htot = printer + speaker + harddisk;<br />
}<br />
public void noOfItems()// The method is declared publicly in the<br />
interface, Billing.<br />
{<br />
System.out.println();<br />
System.out.println(&#8221; &#8220;+&#8221;Total number of hardware items purchased is : &#8221;<br />
+htot);<br />
}}<br />
class Products<br />
{<br />
public static void main(String args[])<br />
{<br />
//Creating an object of the class, Hardware.<br />
SoftwareProducts s = new SoftwareProducts();<br />
HardwareProducts h = new HardwareProducts();<br />
s.calculate();<br />
h.calculate1();<br />
s.noOfItems();<br />
h.noOfItems();<br />
}}</p></blockquote>
<p>In the preceding code, the HardwareProducts subclass implements the <em><strong>ItemCount</strong></em> interface. The<em><strong> HardwareProducts</strong></em> class defines the data members, such as printer, speaker, and hard disk. These data members store the number of printer, speaker, and hard disk. The HardwareProducts class defines the <em><strong>calculate1()</strong></em> method to calculate the total number of hardware items. The <em><strong>noOfItems()</strong></em> method displays the total number of hardware items purchased by David.<br />
The following figure shows the output of the preceding code:</p>
<div class="wp-caption aligncenter" style="width: 678px"><a href="../wp-content/uploads/2009/09/implementing-inheritance-example.png" rel="lightbox[2511]"><img title="implementing inheritance example" src="../wp-content/uploads/2009/09/implementing-inheritance-example.png" alt="implementing inheritance example" width="668" height="186" /></a><p class="wp-caption-text">Using Interface to Display the Number of Items Purchased</p></div>
<p style="text-align: center;">
<p>Interfaces also enable you to declare constants that can be imported into multiple classes. The constant values declared in an interface can be implemented in any class. The constants defined in an interface are declared using the <em><strong>final</strong></em> keyword. You can use the following code to create the TBooks interface in Java:</p>
<blockquote><p>interface TBooks<br />
{<br />
//Defining constants in an interface.<br />
final int cd =10;<br />
final int book =5;<br />
}</p></blockquote>
<p>In the preceding code, the TBooks interface declares a set of constants that stores the number of books and Compact Discs (CD) purchased.<br />
You can use the following code to create the Dcd class:</p>
<blockquote><p>class Dcd implements TBooks<br />
{<br />
void display()<br />
{<br />
System.out.println(&#8221; &#8220;);<br />
System.out.println(&#8220;\t The number of purchased CD&#8217;s are :&#8221; + cd);<br />
System.out.println(&#8221; &#8220;);<br />
}<br />
}<br />
In the preceding code, the <em><strong>Dcd</strong></em> class implements the <em><strong>TBooks</strong></em> interface to display the<br />
number of purchased CDs.<br />
You can use the following code to create the <em><strong>DBooks</strong></em> class:<br />
class DBooks extends Dcd implements TBooks<br />
{<br />
void display1()<br />
{<br />
System.out.println(&#8220;\t The number of purchased books are :&#8221; + book);<br />
System.out.println(&#8220;\t The number of purchased CD&#8217;s are :&#8221; + cd);<br />
System.out.println(&#8221; &#8220;);<br />
}<br />
public static void main (String args[])<br />
{<br />
// Creating an instance of DBooks class.<br />
DBooks db = new DBooks();<br />
TBooks t;<br />
t = db;<br />
db.display1();<br />
}}</p></blockquote>
<p>In the preceding code, the <em><strong>DBooks</strong></em> subclass extends from the <em><strong>Dcd</strong></em> superclass and implements the <em><strong>TBooks</strong></em> interface. The <em><strong>display1() </strong></em>method displays the number of purchased books and CDs using inheritance.<br />
The following figure shows the output of the preceding code:</p>
<div id="attachment_2512" class="wp-caption aligncenter" style="width: 678px"><a href="http://www.rockingteam.com/wp-content/uploads/2009/09/implementing-inheritance-example-2.png" rel="lightbox[2511]"><img class="size-full wp-image-2512" title="implementing inheritance example 2" src="http://www.rockingteam.com/wp-content/uploads/2009/09/implementing-inheritance-example-2.png" alt="implementing inheritance example 2" width="668" height="235" /></a><p class="wp-caption-text">Number of Purchased CDs and Books</p></div>
<p style="text-align: center;">
]]></content:encoded>
			<wfw:commentRss>http://www.rockingteam.com/2010/01/java-tutorial-implementing-interfaces-example/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Implementing User Defined Exceptions</title>
		<link>http://www.rockingteam.com/2009/12/implementing-user-defined-exceptions/</link>
		<comments>http://www.rockingteam.com/2009/12/implementing-user-defined-exceptions/#comments</comments>
		<pubDate>Thu, 03 Dec 2009 09:03:24 +0000</pubDate>
		<dc:creator>Alex Jose</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[Exception Handling]]></category>
		<category><![CDATA[Implementing User Defined Exception]]></category>
		<category><![CDATA[Tutorial]]></category>

		<guid isPermaLink="false">http://www.rockingteam.com/2009/11/implementing-user-defined-exceptions/</guid>
		<description><![CDATA[In addition to the built-in exceptions, you can create customized exception as per the application requirements. Each application that you create might have specific constraints. For example, in case of a train reservation application, a passenger must specify the destination. Also, a ticket has to be bought for a passenger who is above three years [...]]]></description>
			<content:encoded><![CDATA[<p>In addition to the built-in exceptions, you can create customized exception as per the application requirements. Each application that you create might have specific constraints.   </p>
<p>For example, in case of a train reservation application, a passenger must specify the destination. Also, a ticket has to be bought for a passenger who is above three years of age.   </p>
<p>Similarly, in the case of a banking application, if a customer is below 18 years of age, he is allowed to open a joint account only. Error handling becomes a necessity while developing applications that account for such constraints. The Exception class or its subclasses in Java do not address these application specific constraints. You can create your own exception classes to address these constraints and ensure the integrity of application data.</p>
<h2>Creating and Handling User-defined Exceptions</h2>
<p>The throw, throws, try, catch, and finally keywords are used while implementing <strong><em>userdefined</em></strong> exceptions. The Exception class inherits all the methods provided by the <em><strong>Throwable</strong></em> class. The user-defined Exception class also inherits the methods defined in the <strong><em>Throwable</em></strong> class. The following table lists the methods defined by the <strong><em>Throwable</em></strong> class:</p>
<table border="0" cellspacing="0" cellpadding="2" width="600">
<tbody>
<tr>
<td valign="top" width="300">Methods</td>
<td valign="top" width="300">Description</td>
</tr>
<tr>
<td valign="top" width="300">String getMessage()</td>
<td valign="top" width="300">
<p>Returns a description of the           <br />exception</p>
</td>
</tr>
<tr>
<td valign="top" width="300">String toString()</td>
<td valign="top" width="300">
<p>Returns a string object containing a           <br />description of the exception. This            <br />method is called by the println()            <br />method when throwable object is            <br />passed to it</p>
</td>
</tr>
<tr>
<td valign="top" width="300">Throwable fillInStackTrace()</td>
<td valign="top" width="300">
<p>Returns a Throwable object that           <br />contains a stack trace</p>
</td>
</tr>
<tr>
<td valign="top" width="300">void printStackTrace()</td>
<td valign="top" width="300">Prints the stack trace</td>
</tr>
<tr>
<td valign="top" width="300">
<p>void printStackTrace(PrintStream           <br />stream)</p>
</td>
<td valign="top" width="300">
<p>Propels the stack trace to a specific           <br />defined stream</p>
</td>
</tr>
<tr>
<td valign="top" width="300">
<p>void printStackTrace(PrintWriter           <br />stream)</p>
</td>
<td valign="top" width="300">
<p>Propels the stack trace to a specific           <br />defined stream</p>
</td>
</tr>
<tr>
<td valign="top" width="300">String getLocalizedMessage</td>
<td valign="top" width="300">
<p>Provides a localized description of           <br />the exception.</p>
</td>
</tr>
</tbody>
</table>
<p>&#160;</p>
<p>You can use the following code to create a user-defined exception to catch the exception raised when the sum of two numbers exceeds 20:</p>
<blockquote><p>class UserException extends Exception     <br />{      <br />int num1,num2,sum;      <br />UserException(int a,int b)      <br />{      <br />num1 = a; num2 = b; sum = a + b;}      <br />public String toString()      <br />{      <br />return &quot;UserException Caught: The sum of the numbers Exceeds      <br />20..&quot;; }      <br />}      <br />class UserExceptionDemo      <br />{      <br />static void calculate(int a,int b) throws UserException      <br />{      <br />int sum;      <br />System.out.println(&quot;Calculate Method(&quot; + a + &quot;,&quot; + b +      <br />&quot;)&quot;);      <br />sum=a+b;      <br />if(sum&gt;20)      <br />throw new UserException(a,b);      <br />System.out.println(&quot;The Value of the sum of two numbers      <br />is:&quot; + sum);      <br />}      <br />public static void main(String args[])      <br />{      <br />try      <br />{      <br />calculate(12,1);      <br />calculate(15,7);      <br />}      <br />catch (UserException Obja)      <br />1B.42 Programming in Java      <br />{      <br />System.out.println(&quot;Caught:&quot; + Obja);      <br />}      <br />}      <br />}</p>
</blockquote>
<p>In the preceding code, the <strong><em>UserException</em></strong> subclass of the <strong><em>Exception</em></strong> class is created. The <strong><em>UserException</em></strong> class has one constructor, <strong><em>UserException()</em></strong> and the <strong><em>toString()</em></strong> method that returns a string containing the description of the exception. The <strong><em>UserExceptionDemo</em></strong> class defines the <strong><em>calculate()</em></strong> method that throws an object of the user-defined exception, <em><strong>UserException</strong></em>. The exception is thrown when the sum of two numbers passed as parameters to the <strong><em>calculate()</em></strong> method exceeds 20.    </p>
<p>The output of the preceding code is:</p>
<p><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="Creating User-defined Exceptions" border="0" alt="Creating User-defined Exceptions" src="http://www.rockingteam.com/wp-content/uploads/2009/11/CreatingUserdefinedExceptions.png" width="672" height="167" /></p>
]]></content:encoded>
			<wfw:commentRss>http://www.rockingteam.com/2009/12/implementing-user-defined-exceptions/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Java Tutorial : Exception-Handling &#8211; Summary</title>
		<link>http://www.rockingteam.com/2009/11/java-tutorial-exception-handling-summary/</link>
		<comments>http://www.rockingteam.com/2009/11/java-tutorial-exception-handling-summary/#comments</comments>
		<pubDate>Sun, 29 Nov 2009 06:41:29 +0000</pubDate>
		<dc:creator>Alex Jose</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[Assertion In Java]]></category>
		<category><![CDATA[Built-in Exceptions]]></category>
		<category><![CDATA[Exception Classes]]></category>
		<category><![CDATA[Exception Handling]]></category>
		<category><![CDATA[Implenting Exception Handling]]></category>
		<category><![CDATA[Thrwing An Exception]]></category>
		<category><![CDATA[User Defined Exception]]></category>

		<guid isPermaLink="false">http://www.rockingteam.com/?p=2683</guid>
		<description><![CDATA[Errors can be broadly categorized into two groups on the basis of whether the compiler is able to handle the error or not, such as compile time errors and runtime errors. An exception is a run-time error that can be defined as an abnormal event that occurs during the execution of a program and disrupts [...]]]></description>
			<content:encoded><![CDATA[<ul>
<li>Errors can be broadly categorized into two groups on the basis of whether the compiler is able to handle the error or not, such as compile time errors and runtime errors.</li>
<li>An exception is a run-time error that can be defined as an abnormal event that occurs during the execution of a program and disrupts the normal flow of instructions.</li>
<li>In Java, the Throwable class is the superclassof all the exception classes. It is the class at the top position in the exception class hierarchy. The Exception class and the Error class are two direct subclasses of the Throwable class.</li>
<li>The built-in exceptions in Java are divided into two types on the basis of the conditions where the exception is raised:
<ul>
<li>Checked Exceptions or Compiler-enforced Exceptions</li>
<li>Unchecked exceptions or Runtime Exceptions</li>
</ul>
</li>
<li>You can implement exception-handling in your program by using the following keywords:
<ul>
<li>try</li>
<li>catch</li>
<li>throw</li>
<li>throws</li>
<li>finally</li>
</ul>
</li>
<li>You use multiple catch blocks to throw more than one type of exception.</li>
<li>The finally clause is used to execute the statements that need to be executed whether or not an exception has been thrown.</li>
<li>The throw statement causes termination of the normal flow of control of the</li>
<li>Java code and stops the execution of subsequent statements after the throw statement.</li>
<li>The throws clause is used by a method to specify the types of exceptions the method throws.</li>
<li>You can create your own exception classes to handle the situations specific to an application.</li>
<li>You can use assertions to check and ensure that any assumption made at the start of a program is true throughout the program.</li>
</ul>
<h2>Exception-Handling related Tutorial Article</h2>
<ol>
<li><a title="Java Tutorial : Exception Handling" href="http://www.rockingteam.com/2009/09/java-tutorial-exception-handling/">Java Tutorial : Exception Handling</a></li>
<li><a title="Java Tutorial : Exception Classes" href="http://www.rockingteam.com/2009/10/java-tutorial-exception-classes/">Java Tutorial : Exception Classes</a></li>
<li><a title="Java Tutorial : Built-in Exceptions" href="http://www.rockingteam.com/2009/10/java-tutorial-built-in-exceptions/">Java Tutorial : Built-in Exceptions</a></li>
<li><a title="Java Tutorial : Implementing Exception Handling" href="http://www.rockingteam.com/2009/10/java-tutorial-built-in-exceptions/">Java Tutorial : Implementing Exception Handling</a></li>
<li><a title="Java Tutorial : Implementing Exception Handling – Part 2" href="http://www.rockingteam.com/2009/10/java-tutorial-implementing-exception-handling-part-2/">Java Tutorial : Implementing Exception Handling – Part 2</a></li>
<li><a title=" 	Java Tutorial : Throwing An Exception – Part 1" href="http://www.rockingteam.com/2009/10/java-tutorial-throwing-an-exception-part-1/">Java Tutorial : Throwing An Exception – Part 1</a></li>
<li><a title="Java Tutorial : Throwing An Exception – Part 2" href="http://www.rockingteam.com/2009/10/java-tutorial-throwing-an-exception-%e2%80%93-part-2/">Java Tutorial : Throwing An Exception – Part 2</a></li>
<li><a title="Implementing User Defined Exceptions" href="http://www.rockingteam.com/2009/11/implementing-user-defined-exceptions/">Implementing User Defined Exceptions</a></li>
<li><a title="Java Tutorial : Assertion In Java" href="http://www.rockingteam.com/2009/11/java-tutorial-assertion-in-java/">Java Tutorial : Assertion In Java</a></li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://www.rockingteam.com/2009/11/java-tutorial-exception-handling-summary/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

