<?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>uCertify Articles &#187; CX310-056</title>
	<atom:link href="http://www.ucertify.com/article/exams/cx310-056/feed" rel="self" type="application/rss+xml" />
	<link>http://www.ucertify.com/article</link>
	<description>Just another WordPress weblog</description>
	<lastBuildDate>Wed, 04 Nov 2009 00:00:00 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>What is the round() method?</title>
		<link>http://www.ucertify.com/article/what-is-the-round-method.html</link>
		<comments>http://www.ucertify.com/article/what-is-the-round-method.html#comments</comments>
		<pubDate>Fri, 30 Oct 2009 00:00:00 +0000</pubDate>
		<dc:creator>uCertify</dc:creator>
				<category><![CDATA[Master CIW Enterprise Developer]]></category>
		<category><![CDATA[SCBCD]]></category>
		<category><![CDATA[SCDJWS]]></category>
		<category><![CDATA[SCJP]]></category>
		<category><![CDATA[SCJP 5/6]]></category>
		<category><![CDATA[SCMAD]]></category>
		<category><![CDATA[SCWCD]]></category>
		<category><![CDATA[CX310-035]]></category>
		<category><![CDATA[CX310-055]]></category>
		<category><![CDATA[CX310-056]]></category>
		<category><![CDATA[CX310-066]]></category>

		<guid isPermaLink="false">2600023</guid>
		<description><![CDATA[The round() method is a static method of the java.lang.Math class. It takes a floating-point number as an argument and returns an integer representation of the number. The value returned by the round() method is the same as the value returned by the Math.]]></description>
			<content:encoded><![CDATA[<!-- This is a HTML comment, it will not display in any page. Feel free to remove this comment if it cause any inconvenient to you.
	Thanks for using digg digg, please visit http://www.mkyong.com/blog/digg-digg-wordpress-plugin for any comments and ideas, 
	
    Author : Yong Mook Kim
    Website : http://www.mkyong.com
	--><div><table> <td><iframe src='http://digg.com/api/diggthis.php?w=new&amp;u=http%3A%2F%2Fwww.ucertify.com%2Farticle%2Fwhat-is-the-round-method.html&amp;t=What+is+the+round%28%29+method%3F&amp;s=compact' height='18' width='120' frameborder='0' scrolling='no'></iframe></td> <td><iframe src='http://www.reddit.com/button_content?newwindow=1&amp;url=http%3A%2F%2Fwww.ucertify.com%2Farticle%2Fwhat-is-the-round-method.html&amp;title=What+is+the+round%28%29+method%3F&amp;t=1 ' height='18' width='120' scrolling='no' frameborder='0' ></iframe></td> <td><iframe src='http://widgets.dzone.com/links/widgets/zoneit.html?url=http%3A%2F%2Fwww.ucertify.com%2Farticle%2Fwhat-is-the-round-method.html&amp;title=What+is+the+round%28%29+method%3F&amp;t=2 ' height='18' width='120' scrolling='no' frameborder='0' ></iframe></td> <td><script type="text/javascript"><!--yahooBuzzArticleHeadline=What+is+the+round%28%29+method%3F;//--></script><script type="text/javascript" src="http://d.yimg.com/ds/badge2.js" badgetype=small-votes></script></td> <td><iframe src='http://api.tweetmeme.com/button.js?url=http%3A%2F%2Fwww.ucertify.com%2Farticle%2Fwhat-is-the-round-method.html&amp;source=ucertify&amp;style=compact ' height='20' width='90' frameborder='0' scrolling='no'></iframe></td></table></div><p>The round() method is a static method of the java.lang.Math class. It takes a floating-point number as an argument and returns an integer representation of the number. The value returned by the round() method is the same as the value returned by the Math.floor() method in the following conditions:</p>
<ul>
<li>if the argument to the round() method is a positive number and the fractional part of the number is less than 0.5.</li>
<p></p>
<li>if the argument to the round() method is a negative number and the fractional part of the number is greater than 0.5.</li>
</ul>
<p>The value returned by the round() method is the same as the value returned by the Math.ceil() method in the following conditions:</p>
<ul>
<li>if the argument to the round() method is a positive number and the fractional part of the number is greater than or equal to 0.5.</li>
<p></p>
<li>if the argument to the round() method is a negative number and the fractional part of the number is less than or equal to 0.5.</li>
</ul>
<p>The round() method is overloaded with separate versions for float and double arguments. The signatures of the two versions of the round() method are given below:</p>
<p>public static int round(float num)<br />
public static long round(double num)</p>
<p>The first version of the method takes a float type value as an argument and returns a number after rounding off the value to the nearest int value. </p>
<p>The second version of the method takes a double type value as an argument and returns a number after rounding off the value to the nearest long value.</p>
<ul style='border:1px solid #ccc;background-color:#eff3ef;padding:10px;'><li style='margin-left:10px;'> Download practice question and study guide for  <a href="http://www.ucertify.com/certifications/CIW/master-ciw-enterprise-developer.html" >master-ciw-enterprise-developer</a> for exam.<li style='margin-left:10px;'> Download free practice test for <a href="http://www.ucertify.com/certifications/SUN/scbcd.html" >scbcd  SCBCD</a> exam.<li style='margin-left:10px;'> Pass <a href="http://www.ucertify.com/certifications/SUN/scdjws.html" >SCDJWS</a> in first attampt.<li style='margin-left:10px;'> Best exam simulation <a href="http://www.ucertify.com/certifications/SUN/scjp.html" >SUN scjp</a> download free trial.<li style='margin-left:10px;'> Get certified in first attempt download <a href="http://www.ucertify.com/certifications/SUN/scjp-5-0.html" >scjp-5-0 - SCJP 5/6</a> simulation.<li style='margin-left:10px;'> Best exam simulation <a href="http://www.ucertify.com/certifications/SUN/scmad.html" >SUN scmad</a> download free trial.<li style='margin-left:10px;'> Click here to download <a href="http://www.ucertify.com/certifications/SUN/scwcd.html" >scwcd</a> test study guide and practice question.<li style='margin-left:10px;'> Download free practice test for <a href="http://www.ucertify.com/exams/SUN/310-035.html" >SUN SCJP 2</a> exam.<li style='margin-left:10px;'> Download free practice test for <a href="http://www.ucertify.com/exams/SUN/CX310-055.html" >SUN Java 5.0</a> exam.<li style='margin-left:10px;'> Download free practice test for <a href="http://www.ucertify.com/exams/SUN/CX310-056.html" >SUN SCJP 5.0 Java Upgrade</a> exam.<li style='margin-left:10px;'> Pass <a href="http://www.ucertify.com/exams/SUN/CX310-066.html" >SCJP Upgrade</a> in first attampt.</ul><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fwww.ucertify.com%2Farticle%2Fwhat-is-the-round-method.html&amp;linkname=What%20is%20the%20round%28%29%20method%3F"><img src="http://www.ucertify.com/article/wp-content/plugins/add-to-any/share_save_256_24.png" width="256" height="24" alt="Share/Bookmark"/></a>]]></content:encoded>
			<wfw:commentRss>http://www.ucertify.com/article/what-is-the-round-method.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Modifiers</title>
		<link>http://www.ucertify.com/article/modifiers.html</link>
		<comments>http://www.ucertify.com/article/modifiers.html#comments</comments>
		<pubDate>Thu, 29 Oct 2009 00:00:00 +0000</pubDate>
		<dc:creator>uCertify</dc:creator>
				<category><![CDATA[Master CIW Enterprise Developer]]></category>
		<category><![CDATA[SCBCD]]></category>
		<category><![CDATA[SCDJWS]]></category>
		<category><![CDATA[SCJP]]></category>
		<category><![CDATA[SCJP 5/6]]></category>
		<category><![CDATA[SCMAD]]></category>
		<category><![CDATA[SCWCD]]></category>
		<category><![CDATA[CJP-JAVA-6]]></category>
		<category><![CDATA[CX310-035]]></category>
		<category><![CDATA[CX310-055]]></category>
		<category><![CDATA[CX310-056]]></category>
		<category><![CDATA[CX310-065]]></category>
		<category><![CDATA[CX310-066]]></category>

		<guid isPermaLink="false">2600097</guid>
		<description><![CDATA[Modifiers are Java keywords that are used to declare features in applications. They affect either the lifetime or the accessibility of a feature. A feature may be a class, a method, or a variable. 

Modifiers that affect the visibility of a feature are ca]]></description>
			<content:encoded><![CDATA[<!-- This is a HTML comment, it will not display in any page. Feel free to remove this comment if it cause any inconvenient to you.
	Thanks for using digg digg, please visit http://www.mkyong.com/blog/digg-digg-wordpress-plugin for any comments and ideas, 
	
    Author : Yong Mook Kim
    Website : http://www.mkyong.com
	--><div><table> <td><iframe src='http://digg.com/api/diggthis.php?w=new&amp;u=http%3A%2F%2Fwww.ucertify.com%2Farticle%2Fmodifiers.html&amp;t=Modifiers&amp;s=compact' height='18' width='120' frameborder='0' scrolling='no'></iframe></td> <td><iframe src='http://www.reddit.com/button_content?newwindow=1&amp;url=http%3A%2F%2Fwww.ucertify.com%2Farticle%2Fmodifiers.html&amp;title=Modifiers&amp;t=1 ' height='18' width='120' scrolling='no' frameborder='0' ></iframe></td> <td><iframe src='http://widgets.dzone.com/links/widgets/zoneit.html?url=http%3A%2F%2Fwww.ucertify.com%2Farticle%2Fmodifiers.html&amp;title=Modifiers&amp;t=2 ' height='18' width='120' scrolling='no' frameborder='0' ></iframe></td> <td><script type="text/javascript"><!--yahooBuzzArticleHeadline=Modifiers;//--></script><script type="text/javascript" src="http://d.yimg.com/ds/badge2.js" badgetype=small-votes></script></td> <td><iframe src='http://api.tweetmeme.com/button.js?url=http%3A%2F%2Fwww.ucertify.com%2Farticle%2Fmodifiers.html&amp;source=ucertify&amp;style=compact ' height='20' width='90' frameborder='0' scrolling='no'></iframe></td></table></div><p>Modifiers are Java keywords that are used to declare features in applications. They affect either the lifetime or the accessibility of a feature. A feature may be a class, a method, or a variable. </p>
<p>Modifiers that affect the visibility of a feature are called access modifiers or visibility modifiers. The remaining modifiers do not fall into any clear categorization and may be called storage and lifetime modifiers. </p>
<p>The Access Modifiers</p>
<p>Access modifiers control the access of a feature. They enable a programmer to determine whether access to a feature is limited to a particular class, a class and its subclass, or a package, or if it is accessible without any restriction. Following are the features of a class:</p>
<ul>
<li> The class itself </li>
<p></p>
<li> Its class variable</li>
<p></p>
<li> Its methods and constructors </li>
</ul>
<p>Java provides three access modifiers: public, protected, and private. If none of the three access modifiers is used to declare a feature, Java provides a fourth modifier for which there is no name. It may be called a default access, a package access, or a friendly access modifier. A feature may be declared using at most one access modifier. A compile-time error will occur if more than one access modifier is used to declare a feature. The access modifiers are briefly described as follows:</p>
<ul>
<li>private</p>
<p>The private modifier is the most restrictive access modifier. It limits the visibility of methods and instance variables to the class in which they are defined. An instance variable declared as private is visible (or accessible) only by methods within the same class, but any other classes or objects cannot access it. A method declared as private can be invoked by methods in that same class but not by any other classes. In addition, neither private variables nor private methods are inherited by subclasses.</li>
<li>default access
<p>When none of the three access modifiers is used to declare a feature, the default access modifier is provided by Java. This modifier enables a feature to be accessed by any other classes, provided that the classes are in the same package in which the class that defines them belongs to. Variables or methods declared without any access modifiers are accessible to all the other classes in the same package in which the class containing them belongs to.</li>
<li>protected
<p>An intermediate level of access between package and private is protected. Methods or variables declared as protected are accessible to all classes within the same package in which the class that defines them belongs to. They are also accessible to subclasses of the class that have been defined outside the package. </li>
<li>public
<p>The most unrestrictive access modifier is public. It can be used to declare a class, a method, or a variable. A class declared as public is accessible in any program without any restriction. It also enables a method, a constructor, or a variable to be accessed anywhere in a program where its class can be accessed.</li>
</ul>
<p>Access modifiers are generally used to declare class level variables. As variables declared within a method can only be used within its enclosing method, they may not have access modifiers. </p>
<p>Other modifiers</p>
<p>abstract </p>
<p>The abstract modifier can be used to declare classes and methods. A class declared as abstract is a partially implemented class. A class is declared as abstract when it contains one or more abstract methods. A class is said to contain abstract methods in any of the following conditions:</p>
<ul>
<li> The body of the class explicitly declares an abstract method.</li>
<p></p>
<li> The class inherits one or more abstract methods from its abstract superclass for which it does not provide implementations. </li>
<p></p>
<li> The class directly inherits an interface that contains an abstract method but the class neither declares the method nor does it inherit a method that implements it.</li>
</ul>
<p>If a class containing an abstract method is not declared as abstract, a compile-time error will occur. A class can also be declared as abstract even if it has no abstract methods.</p>
<p>As the implementation of an abstract class is incomplete, it is not possible to create an instance of an abstract class. However, subclasses of an abstract class that itself is not declared as abstract can be instantiated. Subclasses that extend an abstract class are responsible for implementing the unimplemented part of the abstract class. A class declared as abstract may also contain non-abstract methods.</p>
<p>An abstract method is a method without implementation, i.e., an abstract is not defined in the class in which it is declared. The following points must be noted about the declaration of an abstract method:</p>
<ul>
<li> An abstract method declaration provides the signature of the method, return type, and throws clause (if any), but it does not provide an implementation of the method. The declaration of an abstract method ends with a semicolon rather than a block of code.</li>
<p></p>
<li> The class in which the abstract method is declared must itself be declared as abstract.</li>
<p></p>
<li> The use of the abstract keyword in a method declaration along with the modifiers: final, static, native, synchronized, or private is not permitted.</li>
</ul>
<p>By default, a method is non-abstract and it requires a block of code after the declaration part.</p>
<p>static</p>
<p>The static modifier can be used to declare an inner class, a method, and a variable. Static means one per class, not one for each object no matter how many instances of the class might exist. This means that static features can be used without creating an instance of a class.</p>
<p>Variables declared by using the static keyword as a modifier are called static variables. They are not attached to a particular instance of a class but rather belong to a class as a whole. They are declared using the following syntax:</p>
<p>static type varIdentifier;</p>
<p>where, the name of the variable is varIdentifier and its data type is type.</p>
<p>Static variables that are not explicitly initialized in the code are automatically initialized with a default value. The default value depends on the data type of the variables.</p>
<p>Methods declared with the keyword static as modifier are called static methods or class methods. They are so called because they affect a class as a whole and not a particular instance of the class. Static methods are always invoked without reference to a particular instance of a class.   </p>
<p>A static method suffers from the following restrictions:</p>
<ol>
<li> A static method can only call other static methods.</li>
<p></p>
<li> A static method must only access static data.</li>
<p></p>
<li> A static method cannot reference to the current object using keywords super or this.</li>
</ol>
<p>If a method is not declared as static, it is called an instance method. Instance methods are associated with objects and not with classes. Furthermore, they can access all the variables in a class whether they are instance fields or class fields.</p>
<p>Non-static variables cannot be accessed from within a static method. Therefore, the following code will not compile successfully:</p>
<ol>
<li> public class ClsStat{</li>
<p></p>
<li> &nbsp;&nbsp;&nbsp;int x; </li>
<p></p>
<li> &nbsp;&nbsp;&nbsp;public static void main(String argv[]){</li>
<p></p>
<li> &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;System.out.println(x); &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;//a compile-time error </li>
<p></p>
<li> &nbsp;&nbsp;&nbsp;}</li>
<p></p>
<li>}</li>
</ol>
<p>In the given code a compile-time error will occur. As the main method is static, it cannot access the non-static field (i.e., x) in the ClsStat class.</p>
<p>The static modifier can be used to declare a nested class. A nested class declared as static is called a static nested class. A static nested class can directly access only static variables and methods defined in its enclosing class. However, it cannot refer directly to instance variables or methods defined in its enclosing class. It can refer them only through an object reference.</p>
<p>A static initializer is a block of code, enclosed within curly brackets and labeled as static. It is not a part of a method. A class may have one or more static initializers. All the static initializers in a class are executed exactly once and in the same order in which they appear in the class. The execution of static initializers takes place at the class load time.</p>
<p>final</p>
<p>The final modifier can be used to declare classes, methods, and variables. </p>
<p>A class can be declared as final if its definition is complete and no subclasses are needed. The use of the final keyword in a class declaration suggests that the class cannot be subclassed. In other words, a final class cannot have any subclasses. For example, the following class declaration will result in a compile-time error:</p>
<p>Class MyClass extends Math{<br />
//other code<br />
}</p>
<p>As the java.lang.Math class is final, its name cannot appear in the extends clause of another class declaration. Declaring a class as final implicitly makes all the methods in the class as final. Therefore, methods of a final class are never overridden</p>
<p>When a method is declared as final, it cannot be overridden or hidden by a subclass. In other words, a subclass cannot introduce a new version of the method. Methods declared as private and all the methods declared in a final class are implicitly final, and there is no need to explicitly declare them as final.</p>
<p>Variables declared with the keyword final as a modifier are called final variables. They are so called because once initialized a value, their values cannot be modified. Any attempt made to modify the value of a pre-initialized final variable will result in a compile-time error. </p>
<p>A final variable is declared as shown below:</p>
<p>final double IAMFINAL=0; </p>
<p>where, IAMFINAL is the name of variable whose data type is double. This statement declares the variable IAMFINAL as final and initializes it with the value 0 at the same time. Further attempts to change the value of IAMFINAL will result in a compile-time error.</p>
<p>native </p>
<p>Methods implemented in a language other than Java are declared using the native keyword as modifier. These methods are declared by using the native keyword. The body of a native method is replaced by a semicolon, which indicates that the implementation of the method is omitted. When a method is declared as native, the JVM arranges for a native method call to result in execution passing to native library code.</p>
<p>
synchronized </p>
<p>The use of the synchronized keyword in a method declaration ensures that at a time only one thread can execute the block of statements following the method declaration. Other threads wanting access to the method are forced to wait until the currently executing thread returns from the method.</p>
<p>transient </p>
<p>Only variables can be declared as transient. When used as a modifier in a variable declaration, it suggests that a variable may not be written out when the class is serialized.</p>
<p>volatile</p>
<p>The keyword volatile can be used to declare variables. The use of the keyword volatile in a variable declaration suggests the compiler that multiple threads may access the variable. Therefore, the value of the variable may change unexpectedly. A compile-time error will occur on declaring a variable both volatile and final.</p>
<p>Order of appearance of modifiers: </p>
<p>If two or more modifiers appear in the declaration of a feature, they both affect the functionality of the feature. The order of appearance has no effect on the functionality of the feature. For example, public static means the same as static public.</p>
<ul style='border:1px solid #ccc;background-color:#eff3ef;padding:10px;'><li style='margin-left:10px;'> <a href="http://www.ucertify.com/certifications/CIW/master-ciw-enterprise-developer.html" > Pass CIW master-ciw-enterprise-developer - Master CIW Enterprise Developer</a><li style='margin-left:10px;'> Click here to download <a href="http://www.ucertify.com/certifications/SUN/scbcd.html" >scbcd</a> test study guide and practice question.<li style='margin-left:10px;'> Download practice question and study guide for  <a href="http://www.ucertify.com/certifications/SUN/scdjws.html" >scdjws</a> for exam.<li style='margin-left:10px;'> Download practice question and study guide for  <a href="http://www.ucertify.com/certifications/SUN/scjp.html" >scjp</a> for exam.<li style='margin-left:10px;'> Become <a href="http://www.ucertify.com/certifications/SUN/scjp-5-0.html" >SUN SCJP 5/6</a> certified.<li style='margin-left:10px;'> Click here to download <a href="http://www.ucertify.com/certifications/SUN/scmad.html" >scmad</a> test study guide and practice question.<li style='margin-left:10px;'> Click here to download <a href="http://www.ucertify.com/certifications/SUN/scwcd.html" >scwcd</a> test study guide and practice question.<li style='margin-left:10px;'> Download free practice test for <a href="http://www.ucertify.com/exams/SUN/310-035.html" >310-035  SCJP 2</a> exam.<li style='margin-left:10px;'> Click here to get free <a href="http://www.ucertify.com/exams/SUN/CX310-055.html" >CX310-055 Java 5.0</a> exam practice questions.<li style='margin-left:10px;'> Get certified in first attempt download <a href="http://www.ucertify.com/exams/SUN/CX310-056.html" >CX310-056 - SCJP 5.0 Java Upgrade</a> simulation.<li style='margin-left:10px;'> Click here to get free <a href="http://www.ucertify.com/exams/SUN/CX310-065.html" >CX310-065 SCJP 6.0</a> exam practice questions.<li style='margin-left:10px;'> Get certified in first attempt download <a href="http://www.ucertify.com/exams/SUN/CX310-066.html" >CX310-066 - SCJP Upgrade</a> simulation.</ul><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fwww.ucertify.com%2Farticle%2Fmodifiers.html&amp;linkname=Modifiers"><img src="http://www.ucertify.com/article/wp-content/plugins/add-to-any/share_save_256_24.png" width="256" height="24" alt="Share/Bookmark"/></a>]]></content:encoded>
			<wfw:commentRss>http://www.ucertify.com/article/modifiers.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>A Closer Look at Methods</title>
		<link>http://www.ucertify.com/article/a-closer-look-at-methods.html</link>
		<comments>http://www.ucertify.com/article/a-closer-look-at-methods.html#comments</comments>
		<pubDate>Thu, 29 Oct 2009 00:00:00 +0000</pubDate>
		<dc:creator>uCertify</dc:creator>
				<category><![CDATA[Master CIW Enterprise Developer]]></category>
		<category><![CDATA[SCBCD]]></category>
		<category><![CDATA[SCDJWS]]></category>
		<category><![CDATA[SCJP]]></category>
		<category><![CDATA[SCJP 5/6]]></category>
		<category><![CDATA[SCMAD]]></category>
		<category><![CDATA[SCWCD]]></category>
		<category><![CDATA[CJP-JAVA-6]]></category>
		<category><![CDATA[CX310-035]]></category>
		<category><![CDATA[CX310-055]]></category>
		<category><![CDATA[CX310-056]]></category>
		<category><![CDATA[CX310-065]]></category>
		<category><![CDATA[CX310-066]]></category>

		<guid isPermaLink="false">2600096</guid>
		<description><![CDATA[A method is a set of statements grouped together to perform a specific task. It is written to define the behavior of an object or a class. In object-oriented programming, a behavior is referred to as a message that one object sends to another object. Beha]]></description>
			<content:encoded><![CDATA[<!-- This is a HTML comment, it will not display in any page. Feel free to remove this comment if it cause any inconvenient to you.
	Thanks for using digg digg, please visit http://www.mkyong.com/blog/digg-digg-wordpress-plugin for any comments and ideas, 
	
    Author : Yong Mook Kim
    Website : http://www.mkyong.com
	--><div><table> <td><iframe src='http://digg.com/api/diggthis.php?w=new&amp;u=http%3A%2F%2Fwww.ucertify.com%2Farticle%2Fa-closer-look-at-methods.html&amp;t=A+Closer+Look+at+Methods&amp;s=compact' height='18' width='120' frameborder='0' scrolling='no'></iframe></td> <td><iframe src='http://www.reddit.com/button_content?newwindow=1&amp;url=http%3A%2F%2Fwww.ucertify.com%2Farticle%2Fa-closer-look-at-methods.html&amp;title=A+Closer+Look+at+Methods&amp;t=1 ' height='18' width='120' scrolling='no' frameborder='0' ></iframe></td> <td><iframe src='http://widgets.dzone.com/links/widgets/zoneit.html?url=http%3A%2F%2Fwww.ucertify.com%2Farticle%2Fa-closer-look-at-methods.html&amp;title=A+Closer+Look+at+Methods&amp;t=2 ' height='18' width='120' scrolling='no' frameborder='0' ></iframe></td> <td><script type="text/javascript"><!--yahooBuzzArticleHeadline=A+Closer+Look+at+Methods;//--></script><script type="text/javascript" src="http://d.yimg.com/ds/badge2.js" badgetype=small-votes></script></td> <td><iframe src='http://api.tweetmeme.com/button.js?url=http%3A%2F%2Fwww.ucertify.com%2Farticle%2Fa-closer-look-at-methods.html&amp;source=ucertify&amp;style=compact ' height='20' width='90' frameborder='0' scrolling='no'></iframe></td></table></div><p>A method is a set of statements grouped together to perform a specific task. It is written to define the behavior of an object or a class. In object-oriented programming, a behavior is referred to as a message that one object sends to another object. Behavior is the only way by which an object can do anything. </p>
<p>Implementing Methods </p>
<p>A method contains executable code that can be invoked by passing a fixed number of values as arguments. A method has two major parts:</p>
<ul>
<li> method declaration</li>
<p></p>
<li> method body</li>
</ul>
<p>A method declaration gives a lot of information about the method to the compiler, to the runtime system, and to other classes and objects. In addition to the name of the method, the elements in a method declaration are as follows:</p>
<ul>
<li> access modifier </li>
<p></p>
<li> additional modifiers</li>
<p></p>
<li> return type </li>
<p></p>
<li> a formal parameter list </li>
<p></p>
<li> checked exceptions thrown by the method </li>
</ul>
<p>A method body contains a block of code that implements the method. It specifies those statements that execute when the method is called. All the actions take place within the method body. </p>
<p>The general syntax used to write a method is given below:</p>
<p> [access modifiers] [method modifiers] return type method name ([formal parameter list]) [throws clause]{ <br />
&nbsp;&nbsp;&nbsp;// Method body<br />
} </p>
<p>where, the elements given within square braces are optional. The only required elements to declare a method are the name of the method, a return type of the method, and a pair of parentheses. </p>
<p>Access Modifiers used in a Method Declaration</p>
<p>The use of an access modifier in a method declaration determines which other classes can access the method. A method can be declared with one of the following access modifiers: public, private, and protected. </p>
<ul>
<li>public</p>
<p>When a method is declared as public, code contained in its defining class and every other class in the same package can call the method. If the class in which the method is defined is also declared as public, code in every class whether in the same package or any other package can call the method.</li>
<li>protected
<p>When a method is declared as protected, code contained in its defining class, all classes in the package in which the class that defines the method belongs to, and all subclasses of that class (regardless of package) can call the method. </li>
<li>private
<p>When a method is declared private, only code contained in its defining class can call the method. Code in any other classes cannot call the method.</li>
<li>No access modifier
<p>When none of the three access modifiers is used to declare a method, the &#8220;package access&#8221; also called &#8220;default access&#8221; applies. The default access causes the method to be callable from code within its defining class and from all classes within the same package. The method cannot be called by any other class that is not declared in the same package in which the class that declares the method is defined.</li>
</ul>
<p>Method Modifiers</p>
<ul>
<li>The static modifier</p>
<p>The use of the static modifier in a method declaration expression declares the method as a class method rather than an instance method. Methods declared with the keyword static as a modifier are called static methods or class methods. They are so called because they affect a class as a whole, and not a particular instance of the class. Static methods are always invoked without reference to a particular instance of a class.   </p>
<p>A static method suffers from the following restrictions:</p>
<ol>
<li> A static method can only call other static methods.</li>
<p></p>
<li> A static method must only access static data.</li>
<p></p>
<li> A static method cannot reference to the current object using keywords super or this.</li>
</ol>
<p>
If a method is not declared as static, it is called an instance method. Instance methods are associated with objects and not with classes. Furthermore, they can access all the variables in a class whether they are instance fields or class fields.</li>
<li>The abstract modifier
<p>An abstract method is a method without implementation, i.e., an abstract method is not defined in the class in which it is declared. The following points must be noted about the declaration of a method:</p>
<ol>
<li> An abstract method declaration provides the signature of the method, return type, and throws clause (if any), but it does not provide an implementation of the method. The declaration of an abstract method ends with a semicolon rather than a block of code.</li>
<p></p>
<li> The class in which the abstract method is declared must itself be declared as abstract.</li>
<p></p>
<li> The use of the abstract keyword in a method declaration along with the modifiers: final, static, native, synchronized, or private is not permitted.</li>
</ol>
<p>
By default, a method is non-abstract and it requires a block of code after the declaration part.</li>
<li>The final modifier
<p>When a method is declared as final, it cannot be overridden or hidden by a subclass. In other words, a subclass cannot introduce a new version of the method. Methods declared as private and all the methods declared in a final class are implicitly final and there is no need to explicitly declared them as final.</li>
<li>The native modifier
<p>Methods implemented in a language other than Java are called native methods. These methods are declared by using the native keyword. The body of a native method is replaced by a semicolon, which indicates that the implementation of the method is omitted. When a method is declared as native, the JVM arranges for a native method call to result in execution passing to native library code.</li>
<li>The synchronized modifier
<p>The use of the synchronized keyword in a method declaration ensures that at a time only one thread can execute the block of statements following the method declaration. Other threads wanting access to the method are forced to wait until the currently executing thread returns from the method.</li>
</ul>
<p>The Role of a return type in a Method Declaration </p>
<p>Java requires that a method must be declared with the data type of the value that it returns. A method declaration specifies the type of value that the method returns. If a method does not return a value, the keyword void is used, which indicates that the method does not return a value.</p>
<p>Method signature</p>
<p>The combination of the name of the method and formal parameter list forms the method signature.</p>
<ul>
<li>Method name </p>
<p>A method name can be any legal Java identifier.</li>
<li>Formal parameters
<p>The formal parameters of a method are specified by a list of comma-separated parameters specifiers. The general form of a parameter specifier is shown below:</p>
<p> [final] type parameter_name</p>
<p>Each parameter specifier consists of its type and name. The use of the final modifier in a parameter declaration is optional. If a method has no parameters, an empty pair of parentheses appears in the declaration of the method. </p>
<p>Parameters are considered local to a method. The scope of a parameter of a method is the entire body of the method. The parameter is created each time a method is called and is destroyed when the execution leaves the method and returns to the caller of the method.</p>
<p>When the method is invoked, the values of the actual arguments initialize newly created parameter variables before the execution of the body of the method. Therefore, a compile-time error will occur if a method parameter that is declared final is assigned a value within the body of the method. </li>
</ul>
<p>The throws exceptions clause in a method declaration </p>
<p>A throws clause is used in a method declaration to declare any checked exceptions that can result from the execution of a method. If a method throws any checked exceptions, the method declaration must indicate the type of those exceptions by using a throws statement followed by a comma-separated list of the checked exception. Although it is not required to mention other (unchecked) exceptions in a throws clause, they can be placed in the throws clause.</p>
<p>The throws clause of a method mentions the exception type or a superclass of that exception for each checked exception that can result from execution of the body of a method. Failure to do so will result in a compile-time error.</p>
<p>Overloading methods</p>
<p>In Java, each method has a signature, which comprises the name of the method and the types and order of the parameters in the formal parameter list. </p>
<p>Java supports method name overloading, i.e., within a class, it possible to declare multiple methods with the same name as long as they differ in their parameter declarations. When this is the case, the method name is said to be overloaded, and the process is called method overloading.</p>
<p>
For example, the class java.lang.Math class contains an overloaded method named abs, which returns the absolute value of the argument. The signatures of different versions of the method are given below: </p>
<p>public static int abs(int num)<br />
public static long abs(long num)<br />
public static float abs(float num)<br />
public static double abs(double num)</p>
<p>When an overloaded method is invoked, Java uses either the type of the argument or the number of the argument, or both as its guide to determine which version of the overloaded method to execute. This means that overloaded methods must differ either in the type of parameters or number of their parameters, or both. </p>
<p>The Method body </p>
<p>A method body is a block of code that implements the method. However, if the method is either declared as abstract or native, the block of code is replaced by a semicolon, which indicates an unimplemented method. The body of an implemented method specifies those statements that execute when the method is invoked. Besides other executable statements, the body of a method may contain the following elements: </p>
<p>The return statement</p>
<p>A return statement is used within a method body to return a value from a method. Methods declared with a return type other than void return a value to the calling code using the following form of the return statement:</p>
<p>return expression; </p>
<p>where, the expression is a value returned. If a method is declared as void, its body does not contain any return statement that has an expression. </p>
<p>There are two points to be noted about returning a value from a method:</p>
<ol>
<li> The data type of the value after the return statement must match the return type of the method. For example, if a method is declared to return a boolean type, only the boolean values true or false may be placed after the return statement.</li>
<p></p>
<li> The variable receiving the value returned by a method must be compatible with the return type with which the method was declared.</li>
</ol>
<p>Apart from primitive types, a method may also return objects. When a method returns an object, the class of the returned object must be either a subclass of or the exact class of the return type. </p>
<p>The this keyword</p>
<p>In many situations, a method may need to refer to the object that invoked it. Java defines a keyword named &#8216;this&#8217; to accomplish the task. The this keyword can be used within the body of a method to refer to the current object. The current object is the object on which the method was invoked. </p>
<p>The super keyword</p>
<p>If a method hides one of the member variables in its superclass, the method can refer to the hidden variable through the use of the super keyword. In the same way, if a method overrides one of the methods in its superclass, the method can invoke the overridden method through the use of the super keyword.</p>
<p>Local variables</p>
<p>Variables declared within the body of a method are known as local variables. They are so called because they are not available for use outside the block where they are declared. These variables are temporary variables, which are visible to the program only within the scope of the method. The scope defined by a method begins with the block that follows the method declaration. If the method has parameters, they too are included within the scope of the method. When the program control leaves the block, all the variables in the block cease to exist.</p>
<ul style='border:1px solid #ccc;background-color:#eff3ef;padding:10px;'><li style='margin-left:10px;'> Click here to get free <a href="http://www.ucertify.com/certifications/CIW/master-ciw-enterprise-developer.html" >master-ciw-enterprise-developer Master CIW Enterprise Developer</a> exam practice questions.<li style='margin-left:10px;'> Download free practice test for <a href="http://www.ucertify.com/certifications/SUN/scbcd.html" >scbcd  SCBCD</a> exam.<li style='margin-left:10px;'> Become <a href="http://www.ucertify.com/certifications/SUN/scdjws.html" >SUN SCDJWS</a> certified.<li style='margin-left:10px;'> Get certified in first attempt download <a href="http://www.ucertify.com/certifications/SUN/scjp.html" >scjp - SCJP</a> simulation.<li style='margin-left:10px;'> Best exam simulation <a href="http://www.ucertify.com/certifications/SUN/scjp-5-0.html" >SUN scjp-5-0</a> download free trial.<li style='margin-left:10px;'> Best exam simulation <a href="http://www.ucertify.com/certifications/SUN/scmad.html" >SUN scmad</a> download free trial.<li style='margin-left:10px;'> Become <a href="http://www.ucertify.com/certifications/SUN/scwcd.html" >SUN SCWCD</a> certified.<li style='margin-left:10px;'> Best exam simulation <a href="http://www.ucertify.com/exams/SUN/310-035.html" >SUN 310-035</a> download free trial.<li style='margin-left:10px;'> Download free practice test for <a href="http://www.ucertify.com/exams/SUN/CX310-055.html" >CX310-055  Java 5.0</a> exam.<li style='margin-left:10px;'> Become <a href="http://www.ucertify.com/exams/SUN/CX310-056.html" >SUN SCJP 5.0 Java Upgrade</a> certified.<li style='margin-left:10px;'> Click here to get free <a href="http://www.ucertify.com/exams/SUN/CX310-065.html" >CX310-065 SCJP 6.0</a> exam practice questions.<li style='margin-left:10px;'> Best exam simulation <a href="http://www.ucertify.com/exams/SUN/CX310-066.html" >SUN CX310-066</a> download free trial.</ul><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fwww.ucertify.com%2Farticle%2Fa-closer-look-at-methods.html&amp;linkname=A%20Closer%20Look%20at%20Methods"><img src="http://www.ucertify.com/article/wp-content/plugins/add-to-any/share_save_256_24.png" width="256" height="24" alt="Share/Bookmark"/></a>]]></content:encoded>
			<wfw:commentRss>http://www.ucertify.com/article/a-closer-look-at-methods.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>String, StringBuffer and StringBuilder classes</title>
		<link>http://www.ucertify.com/article/string-stringbuffer-and-stringbuilder-classes.html</link>
		<comments>http://www.ucertify.com/article/string-stringbuffer-and-stringbuilder-classes.html#comments</comments>
		<pubDate>Mon, 26 Oct 2009 00:00:00 +0000</pubDate>
		<dc:creator>uCertify</dc:creator>
				<category><![CDATA[Master CIW Enterprise Developer]]></category>
		<category><![CDATA[SCBCD]]></category>
		<category><![CDATA[SCDJWS]]></category>
		<category><![CDATA[SCJP]]></category>
		<category><![CDATA[SCJP 5/6]]></category>
		<category><![CDATA[SCMAD]]></category>
		<category><![CDATA[SCWCD]]></category>
		<category><![CDATA[CJP-JAVA-6]]></category>
		<category><![CDATA[CX310-055]]></category>
		<category><![CDATA[CX310-056]]></category>
		<category><![CDATA[CX310-065]]></category>
		<category><![CDATA[CX310-066]]></category>

		<guid isPermaLink="false">4101045</guid>
		<description><![CDATA[String, StringBuffer, and StringBuilder are classes present in the Object class. String objects are immutable, whereas StringBuffer and StringBuilder objects can be modified.

String Class

The String class is defined in the java.lang package, and hence i]]></description>
			<content:encoded><![CDATA[<!-- This is a HTML comment, it will not display in any page. Feel free to remove this comment if it cause any inconvenient to you.
	Thanks for using digg digg, please visit http://www.mkyong.com/blog/digg-digg-wordpress-plugin for any comments and ideas, 
	
    Author : Yong Mook Kim
    Website : http://www.mkyong.com
	--><div><table> <td><iframe src='http://digg.com/api/diggthis.php?w=new&amp;u=http%3A%2F%2Fwww.ucertify.com%2Farticle%2Fstring-stringbuffer-and-stringbuilder-classes.html&amp;t=String%2C+StringBuffer+and+StringBuilder+classes&amp;s=compact' height='18' width='120' frameborder='0' scrolling='no'></iframe></td> <td><iframe src='http://www.reddit.com/button_content?newwindow=1&amp;url=http%3A%2F%2Fwww.ucertify.com%2Farticle%2Fstring-stringbuffer-and-stringbuilder-classes.html&amp;title=String%2C+StringBuffer+and+StringBuilder+classes&amp;t=1 ' height='18' width='120' scrolling='no' frameborder='0' ></iframe></td> <td><iframe src='http://widgets.dzone.com/links/widgets/zoneit.html?url=http%3A%2F%2Fwww.ucertify.com%2Farticle%2Fstring-stringbuffer-and-stringbuilder-classes.html&amp;title=String%2C+StringBuffer+and+StringBuilder+classes&amp;t=2 ' height='18' width='120' scrolling='no' frameborder='0' ></iframe></td> <td><script type="text/javascript"><!--yahooBuzzArticleHeadline=String%2C+StringBuffer+and+StringBuilder+classes;//--></script><script type="text/javascript" src="http://d.yimg.com/ds/badge2.js" badgetype=small-votes></script></td> <td><iframe src='http://api.tweetmeme.com/button.js?url=http%3A%2F%2Fwww.ucertify.com%2Farticle%2Fstring-stringbuffer-and-stringbuilder-classes.html&amp;source=ucertify&amp;style=compact ' height='20' width='90' frameborder='0' scrolling='no'></iframe></td></table></div><p>String, StringBuffer, and StringBuilder are classes present in the Object class. String objects are immutable, whereas StringBuffer and StringBuilder objects can be modified.</p>
<p>String Class</p>
<p>The String class is defined in the java.lang package, and hence it is implicitly available to all the programs in Java. The String class is declared as final, which means that it cannot be subclassed. It extends the Object class and implements the Serializable, Comparable, and CharSequence interfaces.</p>
<p>Java implements strings as objects of type String. A string is a sequence of characters. Unlike most of other languages, Java treats a string as a single value rather than as an array of characters. </p>
<p>String objects are immutable, i.e., once an object of the String class is created, the string it contains cannot be changed. In other words, once a String object is created, the characters that comprise the string cannot be changed. Whenever any operation is performed on a String object, a new String object will be created while the original contents of the object will remain unchanged. However, at any time, a variable declared as a String reference can be changed to point to some other String object. </p>
<p> Constructors defined in the String class:  The String class defines several constructors. The most common constructor of the String class is the one given below:</p>
<p> public String(String value)</p>
<p>This constructor constructs a new String object initialized with the same sequence of the characters passed as the argument. In other words, the newly created String object is the copy of the string passed as an argument to the constructor.</p>
<p>Other constructors defined in the String class are as follows:</p>
<ul>
<li>public String()</p>
<p>This constructor creates an empty String object. However, the use of this constructor is unnecessary because String objects are immutable.</li>
<li> public String(char[] value)
<p>This constructor creates a new String object initialized with the same sequence of characters currently contained in the array that is passed as the argument to the constructor. </li>
<li>public String(char[] value, int startindex, int len)
<p>This constructor creates a new String object initialized with the same sequence of characters currently contained in the subarray. This subarray is derived from the character array and the two integer values that are passed as arguments to the constructor. The int variable startindex represents the index value of the starting character of the subarray, and the int variable len represents the number of characters to be used to form the new String object.</li>
<li>public String(StringBuffer sbf)
<p>This constructor creates a new String object that contains the same sequence of characters currently contained in the string buffer argument.</li>
<li> public String(byte[] asciichars)
<p>The array of bytes passed as an argument to the constructor contains the ASCII character set. Therefore, this array is first decoded using the default charset of the platform. Then the constructor creates a new String object initialized with the same sequence of characters obtained after decoding the array.</li>
<li> public String(byte[] asciiChars, int startindex, int len)
<p>This constructor creates the String object after decoding the array of bytes and by using the subarray of bytes.</li>
<p>
</ul>
<p>
New constructors in J2SE 5: Two new constructors have been added to Java in version 5, which are as follows:</p>
<ul>
<li>String(int code Points[], int startindex, int numchars)</p>
<p>where code Points is an array that returns integers and contains Unicode code points, startindex is an integer that represents starting index, and numchars is the number of characters in the string.</li>
<li>String(StringBuilder strBldObj)
<p>This constructor uses a StringBuilder object as an argument. </li>
</ul>
<p>
Special String Operations</p>
<ul>
<li>Finding the length of string </p>
<p>The String class defines the length() method that determines the length of a string. The length of a string is the number of characters contained in it. The signature of the length() method is as follows:</p>
<p>public int length()</li>
<li> String Concatenation using the + operator
<p>The + operator is used to concatenate two strings, producing a new String object as the result. For example:</p>
<p> String sale = &#8220;500&#8243;;<br />
String s = &#8220;Our daily sale is&#8221; + sale + &#8220;dollars&#8221;;<br />
System.out.println(s);</p>
<p>This code will display the string &#8220;Our daily sale is 500 dollars&#8221;.</p>
<p>The + operator can also be used to concatenate a string with other data types. For example: </p>
<p> int sale = 500; <br />
String s = &#8220;Our daily sale is&#8221; + sale + &#8220;dollars&#8221;;<br />
System.out.println(s);</p>
<p>This code will display the string &#8220;Our daily sale is 500 dollars&#8221;. In this case, the variable sale is declared as int rather than String, but the output produced is the same. This is because the int value contained in the variable sale is automatically converted to String type, and then the + operator concatenates the two strings.</li>
</ul>
<p>
 String Comparison </p>
<p>The String class defines various methods that are used to compare strings or substrings within strings. Each of them is discussed in the following sections:</p>
<ul>
<li>equals()</p>
<p>The equals() method is used to check whether the Object that is passed as the argument to the method is equal to the String object that invokes the method. It returns true if and only if the argument is a String object that represents the same sequence of characters as represented by the invoking object. The signature of the equals() method is as follows:</p>
<p> public boolean equals(Object str)</li>
<li> equalsIgnoreCase()
<p>The equalsIgnoreCase() method is used to check the equality of the two String objects without taking into consideration the case of the characters contained in the two strings. It returns true if the two strings are of the same length and if the corresponding characters in the two strings are the same, without considering the case. The signature of the equalsIgnoreCase() method is as follows:</p>
<p> public boolean equalsIgnoreCase(Object str) </li>
<li>compareTo()
<p>The compareTo() method is used in conditions where a Programmer wants to sort a list of strings in a predetermined order. The compareTo() method checks whether the string passed as an argument to the method is less than, greater than, or equal to the invoking string. A string is considered less than another string if it comes before it in alphabetical order. The signature of the compareTo() method is as follows:</p>
<p>public int compareTo(String str)</p>
<p>where, str is the String being compared to the invoking String. The compareTo() method returns an int value as the  result of String comparison. The meaning of these values are given in the following table:</p>
<table border="1">
<tr>
<td>  Value  </td>
<td>  Meaning  </td>
</tr>
<tr>
<td> Less than zero </td>
<td> The invoking string is less than the argument string.</td>
</tr>
<tr>
<td> Zero </td>
<td> The invoking string and the argument string are same.</td>
</tr>
<tr>
<td> Greater than zero </td>
<td> The invoking string is greater than the argument string. </td>
</tr>
</table>
<p>
The String class also has the compareToIgnoreCase() method that compares two strings without taking into consideration their case difference. The signature of this method is given below:</p>
<p>public int compareToIgnoreCase(String str) </li>
<li>regionMatches()
<p>The regionMatches() method is used to check the equality of two string regions  where the two string regions belong to two different strings. The signature of the method is given below:</p>
<p> public boolean regionMatches(int startindex, String str2, int startindex2, int len)</p>
<p>There is also an overloaded version of the method that tests the equality of the substring ignoring the case of characters in the substring. Its signature is given below:</p>
<p> public boolean regionMatches(boolean ignoreCase, int startindex, String str2, int startindex2, int len) </p>
<p>In both signatures of the method, startindex specifies the starting index of the substring within the invoking string. The str2 argument specifies the string to be compared. The startindex2 specifies the starting index of the substring within the string to be compared. The len argument specifies the length of the substring being compared. However, in the latter signature of the method, the comparison is done ignoring the case of the characters in the substring only if the ignoreCase argument is true.</li>
<li>  startsWith()
<p>The startsWith() method is used to check whether the invoking string starts with the same sequence of characters as the substring passed as an argument to the method. The signature of the method is given below:</p>
<p> public boolean startsWith(String prefix)</p>
<p>There is also an overloaded version of the startsWith() method with the following signature:</p>
<p> public boolean startsWith(String prefix, int startindex)</p>
<p>In both signatures of the method given above, the prefix denotes the substring to be matched within the invoking string. However, in the second version, the startindex denotes the starting index into the invoking string at which the search operation will commence.</li>
<li> endsWith()
<p>The endsWith() method is used to check whether the invoking string ends with the same sequence of characters as the substring passed as an argument to the method. The signature of the method is given below:</p>
<p> public boolean endsWith(String prefix) </li>
</ul>
<p>
 Modifying a String </p>
<p>The String objects are immutable. Therefore, it is not possible to change the original contents of a string. However, the following String methods can be used to create a new copy of the string with the required modification: </p>
<ul>
<li>  substring()</p>
<p>The substring() method creates a new string that is the substring of the string that invokes the method. This method has two forms:</p>
<p>public String substring(int startindex) </p>
<p>public String substring(int startindex, int endindex) </p>
<p>where, startindex specifies the index at which the substring will begin and endindex specifies the index at which the substring will end. In the first form where the endindex is not present, the substring begins at startindex and runs till the end of the invoking string.</li>
<li>  Concat()
<p>The concat() method creates a new string after concatenating the argument string to the end of the invoking string. The signature of the method is given below:</p>
<p>public String concat(String str)  </li>
<li>  replace()
<p>The replace() method creates a new string after replacing all the occurrences of a particular character in the string with another character. The string that invokes this method remains unchanged. The general form of the method is given below:</p>
<p>public String replace(char old_char, char new_char) </li>
<li> trim()
<p>The trim() method creates a new copy of the string after removing any leading and trailing whitespace. The signature of the method is given below:</p>
<p>public String trim(String str) </li>
<li> toUpperCase()
<p>The toUpperCase() method creates a new copy of a string after converting all the lowercase letters in the invoking string to uppercase. The signature of the method is given below:</p>
<p>public String toUpperCase()</li>
<li> toLowerCase()
<p>The toLowerCase() method creates a new copy of a string after converting all the uppercase letters in the invoking string to lowercase. The signature of the method is given below:</p>
<p>public String toLowerCase()</li>
</ul>
<p>
Searching Strings </p>
<p>The String class defines two methods that facilitate in searching a particular character or sequence of characters in a string. They are as follows:</p>
<ul>
<li>  IndexOf()</p>
<p>The indexOf() method searches for the first occurrence of a character or a substring in the invoking string. If a match is found, then the method returns the index at which the character or the substring first appears. Otherwise, it returns -1. The indexOf() method has the following signatures:</p>
<p>public int indexOf(int ch) </p>
<p>public int indexOf(int ch, int startindex) </p>
<p>public int indexOf(String str) </p>
<p>public int indexOf(String str, int startindex) </li>
<li> lastIndexOf()
<p>The lastIndexOf() method searches for the last occurrence of a character or a substring in the invoking string. If a match is found, then the method returns the index at which the character or the substring last appears. Otherwise, it returns -1. The lastIndexOf() method has the following signatures:</p>
<p>public int lastIndexOf(int ch) </p>
<p>public int lastIndexOf (int ch, int startindex) </p>
<p>public int lastIndexOf (String str) </p>
<p>public int lastIndexOf (String str, int startindex)  </li>
</ul>
<p>StringBuffer and StringBuilder classes</p>
<p>Like the String class, the StringBuffer and StringBuilder classes are also present in the java.lang package. Therefore, they are implicitly available to all java classes.</p>
<p>StringBuilder is a new concept introduced in J2SE 5. It is very similar to StringBuffer class. Like String and StringBuffer it extends directly from Object class. StringBuilder can act as a replacement of StringBuffer in places where it is not multithreaded environment. That is where we are not worried about Synchronization or multithreading. The signature of StringBuilder is public final class StringBuilder extends Object implements Serializable, CharSequence. Because StringBuilder is not synchronized, it offers faster performance than StringBuffer.</p>
<p> Constructors defined in the StringBuffer class:  The StringBuffer class defines several constructors. The most common constructor of the StringBuffer class is the one given below:</p>
<ul>
<li> public StringBuffer(String value)</p>
<p>This will construct a StringBuffer constructor with contents of string value and reserves space for extra 16 characters.
</li>
</ul>
<p>
Other constructors defined in the StringBuffer class are as follows:</p>
<ul></p>
<li>StringBuffer()
<p>This will construct a default StringBuffer constructor reserving room for 16 characters.
</li>
<p></p>
<li>StringBuffer(int size)
<p>This will create a constructor with a specified initial size.
</li>
<li>StringBuffer(Charsequence ch)
<p>This will create a constructor with a charactersequence ch.
</li>
<p>
</ul>
<p>Special StringBuffer Operations</p>
<ul>
<li>Length of StringBuffer </p>
<p>The StringBuffer and StringBuilder classes define the length() method that determines the length of a StringBuffer/StringBuilder. The length of a Stringbuffer is the number of characters contained in the StringBuffer. The signature of the length() method is given below:</p>
<p>public int length()</p>
<p>Length of a StringBuffer can be set using the setLength() method.</p>
<p>public void setLength(int len)</p>
<p>where len is the specified length of the StringBuffer. It is an integer value, and is always non-negative. </li>
<p></p>
<li>Capacity of StringBuffer
<p>The StringBuffer and StringBuilder classes define the capacity() method that determines the capacity of a StringBuffer/StringBuilder. The capacity of a StringBuffer is the maximum number of characters that a  StringBuffer can hold. The signature of the capacity() method is given below:</p>
<p>public int capacity ()</p>
<p>Capacity of a pre-constructed StringBuffer can be pre-allocated using the ensureCapacity() method of StringBuffer as:</p>
<p>public void ensureCapacity (int capacity)</li>
<li>Finding character at a specified location
<p>The StringBuffer and StringBuilder classes define the charAt() method that is used to obtain the character at a specified index in the StringBuffer/StringBuilder.</p>
<p>char charAt(int index)</p>
<p>A character at a given index can be set using setCharAt (int index,char ch) method of StringBuffer class.</p>
<p>For both the above methods, index cannot be a negative value. </li>
<li> Appending to a  StringBuffer
<p>public StringBuilder append(char c) </p>
<p>This method of StringBuffer class appends the string representation of the char argument to the current sequence. The argument is appended to the contents of this sequence. This increases the length of the sequence by 1.</li>
<li>Inserting in a StringBuffer
<p>StringBuffer has methods to insert various datatypes like a character a string, a string representation of float, double etc at a specified index.<br />
public StringBuilder insert(int offset, char c) </p>
<p>This method will insert the string representation of the char argument into this sequence. <br />
The second argument is inserted into the contents of this sequence at the position indicated by offset. The length of this sequence increases by one. </p>
<p> public StringBuilder insert(int offset, char[] str) </p>
<p>This method will insert the string representation of the char array argument into this sequence.<br />
The characters of the array argument are inserted into the contents of this sequence at the position indicated by offset. The length of this sequence increases by the length of the argument.</p>
<p>public StringBuilder insert(int dstOffset, CharSequence s)</p>
<p>This method will insert the specified CharSequence into this sequence. <br />
The characters of the CharSequence argument are inserted, in order, into this sequence at the indicated offset, moving up any characters originally above that position and increasing the length of this sequence by the length of the argument s. </p>
<p>In addition, there are insert methods with argument as an integer value, a boolean value, a long, a float, and a double.
</li>
<li>Reversing the character sequence of a StringBuffer
<p>The StringBuffer class has a method to reverse the character sequence in a StringBuffer.</p>
<p>public StringBuffer reverse()</p>
<p>This will cause the character sequence to be replaced by the reverse of the sequence.</li>
<li>Replacing a sequence of character with another sequence.
<p>public  StringBuilder replace(int start, int end, String str) </p>
<p>This will replace the characters in a substring of this sequence with characters in the specified String. The substring begins at the specified start and extends to the character at index end &#8211; 1 or to the end of the sequence if no such character exists.</li>
<li>Deleting a character
<p>The  delete() method of StringBuffer class is used to delete a character from starting to the end as specified. There is another method called deleteCharAt () used to delete char from a specified index.</p>
<p>public StringBuffer delete(int start, int end)</p>
<p> public StringBuffer  deleteCharAt(int index)</li>
<li>Obtaining a substring
<p>StringBuffer class has a method to obtain a substring from a given string. The substring starts from the index specified, and extends up to the end of StrigBuffer. There is also a method with starting and ending indexes specified.</p>
<p>public String subString(int startindex)</p>
<p>This will extract a substring from specified index startindex and extends up to end of the StringBuffer.</p>
<p>public String subString(int startindex, int endindex)</p>
<p>This will extract a substring from specified index startindex and extends up to specified index endindex. </li>
<li>Finding an index
<p>The StringBuffer class has methods for finding indexes of first and last occurrence of a specified string within the StringBuffer.</p>
<p>public int indexOf(String str) </p>
<p>If the string argument occurs as a substring within this object, then the index of the first character of the first such substring is returned; if it does not occur as a substring, -1 is returned. </p>
<p>public int indexOf(String str, int fromIndex)</p>
<p>This will return the index within this string of the first occurrence of the specified substring, starting at the specified index. If the string argument occurs as a substring within this object, then the index of the first character of the first such substring is returned; if it does not occur as a substring, -1 is returned. </p>
<p>public int lastIndexOf(String str) </p>
<p>If the string argument occurs as a substring within this object, then the index of the first character of the last such substring is returned; if it does not occur as a substring, -1 is returned. </p>
<p>public int lastIndexOf(String str, int fromIndex)</p>
<p>This will return the index within this string of the last occurrence of the specified substring, starting at the specified index. If the string argument occurs as a substring within this object, then the index of the first character of the last such substring is returned; if it does not occur as a substring, -1 is returned. </li>
<li>Conversion to string
<p>A StringBuffer is converted to a string using the toString method.</p>
<p>public String toString()</p>
<p>This will return a string representing the data in this sequence. A new String object is allocated and initialized to contain the character sequence currently represented by this object. This String is then returned. Subsequent changes to this sequence do not affect the contents of the String. </li>
<li>Changing the size
<p>StringBuffer class has a method called trimToSize, used to reduce the size of the character buffer for the invoking object to exactly fit the current contents. </p>
<p>public void trimToSize() </li>
</ul>
<p>If the buffer is larger than necessary to hold its current sequence of characters, it can be resized to become more space efficient.</p>
<ul style='border:1px solid #ccc;background-color:#eff3ef;padding:10px;'><li style='margin-left:10px;'> Click here to download <a href="http://www.ucertify.com/certifications/CIW/master-ciw-enterprise-developer.html" >master-ciw-enterprise-developer</a> test study guide and practice question.<li style='margin-left:10px;'> Download free practice test for <a href="http://www.ucertify.com/certifications/SUN/scbcd.html" >SUN SCBCD</a> exam.<li style='margin-left:10px;'> Get certified in first attempt download <a href="http://www.ucertify.com/certifications/SUN/scdjws.html" >scdjws - SCDJWS</a> simulation.<li style='margin-left:10px;'> Download free practice test for <a href="http://www.ucertify.com/certifications/SUN/scjp.html" >scjp  SCJP</a> exam.<li style='margin-left:10px;'> Best exam simulation <a href="http://www.ucertify.com/certifications/SUN/scjp-5-0.html" >SUN scjp-5-0</a> download free trial.<li style='margin-left:10px;'> Best exam simulation <a href="http://www.ucertify.com/certifications/SUN/scmad.html" >SUN scmad</a> download free trial.<li style='margin-left:10px;'> Pass <a href="http://www.ucertify.com/certifications/SUN/scwcd.html" >SCWCD</a> in first attampt.<li style='margin-left:10px;'> Pass <a href="http://www.ucertify.com/exams/SUN/CX310-055.html" >Java 5.0</a> in first attampt.<li style='margin-left:10px;'> Get certified in first attempt download <a href="http://www.ucertify.com/exams/SUN/CX310-056.html" >CX310-056 - SCJP 5.0 Java Upgrade</a> simulation.<li style='margin-left:10px;'> Download free practice test for <a href="http://www.ucertify.com/exams/SUN/CX310-065.html" >SUN SCJP 6.0</a> exam.<li style='margin-left:10px;'> Download free practice test for <a href="http://www.ucertify.com/exams/SUN/CX310-066.html" >SUN SCJP Upgrade</a> exam.</ul><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fwww.ucertify.com%2Farticle%2Fstring-stringbuffer-and-stringbuilder-classes.html&amp;linkname=String%2C%20StringBuffer%20and%20StringBuilder%20classes"><img src="http://www.ucertify.com/article/wp-content/plugins/add-to-any/share_save_256_24.png" width="256" height="24" alt="Share/Bookmark"/></a>]]></content:encoded>
			<wfw:commentRss>http://www.ucertify.com/article/string-stringbuffer-and-stringbuilder-classes.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>What is a static initializer block?</title>
		<link>http://www.ucertify.com/article/what-is-a-static-initializer-block-2.html</link>
		<comments>http://www.ucertify.com/article/what-is-a-static-initializer-block-2.html#comments</comments>
		<pubDate>Sun, 04 Oct 2009 00:00:00 +0000</pubDate>
		<dc:creator>uCertify</dc:creator>
				<category><![CDATA[Master CIW Enterprise Developer]]></category>
		<category><![CDATA[SCBCD]]></category>
		<category><![CDATA[SCDJWS]]></category>
		<category><![CDATA[SCJP]]></category>
		<category><![CDATA[SCJP 5/6]]></category>
		<category><![CDATA[SCMAD]]></category>
		<category><![CDATA[SCWCD]]></category>
		<category><![CDATA[CJP-JAVA-6]]></category>
		<category><![CDATA[CX310-055]]></category>
		<category><![CDATA[CX310-056]]></category>
		<category><![CDATA[CX310-065]]></category>
		<category><![CDATA[CX310-066]]></category>

		<guid isPermaLink="false">4101063</guid>
		<description><![CDATA[A static initializer block is a free hanging block in a Java class. It is used mainly for initialization. It is very similar to a constructor, but it cannot be inherited. The static initializer block is declared as follows: 

static
{
&#160; &#160; &#160;]]></description>
			<content:encoded><![CDATA[<!-- This is a HTML comment, it will not display in any page. Feel free to remove this comment if it cause any inconvenient to you.
	Thanks for using digg digg, please visit http://www.mkyong.com/blog/digg-digg-wordpress-plugin for any comments and ideas, 
	
    Author : Yong Mook Kim
    Website : http://www.mkyong.com
	--><div><table> <td><iframe src='http://digg.com/api/diggthis.php?w=new&amp;u=http%3A%2F%2Fwww.ucertify.com%2Farticle%2Fwhat-is-a-static-initializer-block-2.html&amp;t=What+is+a+static+initializer+block%3F&amp;s=compact' height='18' width='120' frameborder='0' scrolling='no'></iframe></td> <td><iframe src='http://www.reddit.com/button_content?newwindow=1&amp;url=http%3A%2F%2Fwww.ucertify.com%2Farticle%2Fwhat-is-a-static-initializer-block-2.html&amp;title=What+is+a+static+initializer+block%3F&amp;t=1 ' height='18' width='120' scrolling='no' frameborder='0' ></iframe></td> <td><iframe src='http://widgets.dzone.com/links/widgets/zoneit.html?url=http%3A%2F%2Fwww.ucertify.com%2Farticle%2Fwhat-is-a-static-initializer-block-2.html&amp;title=What+is+a+static+initializer+block%3F&amp;t=2 ' height='18' width='120' scrolling='no' frameborder='0' ></iframe></td> <td><script type="text/javascript"><!--yahooBuzzArticleHeadline=What+is+a+static+initializer+block%3F;//--></script><script type="text/javascript" src="http://d.yimg.com/ds/badge2.js" badgetype=small-votes></script></td> <td><iframe src='http://api.tweetmeme.com/button.js?url=http%3A%2F%2Fwww.ucertify.com%2Farticle%2Fwhat-is-a-static-initializer-block-2.html&amp;source=ucertify&amp;style=compact ' height='20' width='90' frameborder='0' scrolling='no'></iframe></td></table></div><p>A static initializer block is a free hanging block in a Java class. It is used mainly for initialization. It is very similar to a constructor, but it cannot be inherited. The static initializer block is declared as follows: <br />
<uc:stx><br />
static<br />
{<br />
&nbsp; &nbsp; &nbsp;int i = 5;<br />
&nbsp; &nbsp; &nbsp; //more static initializations<br />
}<br />
</uc:stx> <br />
This block has neither any return type nor any access modifier. This is why it is known as a free hanging static initializer block. Unlike a constructor, a static initializer block is executed only once, at the time of class loading.</p>
<ul style='border:1px solid #ccc;background-color:#eff3ef;padding:10px;'><li style='margin-left:10px;'> Click here to get free <a href="http://www.ucertify.com/certifications/CIW/master-ciw-enterprise-developer.html" >master-ciw-enterprise-developer Master CIW Enterprise Developer</a> exam practice questions.<li style='margin-left:10px;'> Download free practice test for <a href="http://www.ucertify.com/certifications/SUN/scbcd.html" >scbcd  SCBCD</a> exam.<li style='margin-left:10px;'> Download free practice test for <a href="http://www.ucertify.com/certifications/SUN/scdjws.html" >scdjws  SCDJWS</a> exam.<li style='margin-left:10px;'> Download practice question and study guide for  <a href="http://www.ucertify.com/certifications/SUN/scjp.html" >scjp</a> for exam.<li style='margin-left:10px;'> Download practice question and study guide for  <a href="http://www.ucertify.com/certifications/SUN/scjp-5-0.html" >scjp-5-0</a> for exam.<li style='margin-left:10px;'> Get certified in first attempt download <a href="http://www.ucertify.com/certifications/SUN/scmad.html" >scmad - SCMAD</a> simulation.<li style='margin-left:10px;'> Pass <a href="http://www.ucertify.com/certifications/SUN/scwcd.html" >SCWCD</a> in first attampt.<li style='margin-left:10px;'> Click here to download <a href="http://www.ucertify.com/exams/SUN/CX310-055.html" >CX310-055</a> test study guide and practice question.<li style='margin-left:10px;'> <a href="http://www.ucertify.com/exams/SUN/CX310-056.html" > Pass SUN CX310-056 - SCJP 5.0 Java Upgrade</a><li style='margin-left:10px;'> Best exam simulation <a href="http://www.ucertify.com/exams/SUN/CX310-065.html" >SUN CX310-065</a> download free trial.<li style='margin-left:10px;'> Pass <a href="http://www.ucertify.com/exams/SUN/CX310-066.html" >SCJP Upgrade</a> in first attampt.</ul><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fwww.ucertify.com%2Farticle%2Fwhat-is-a-static-initializer-block-2.html&amp;linkname=What%20is%20a%20static%20initializer%20block%3F"><img src="http://www.ucertify.com/article/wp-content/plugins/add-to-any/share_save_256_24.png" width="256" height="24" alt="Share/Bookmark"/></a>]]></content:encoded>
			<wfw:commentRss>http://www.ucertify.com/article/what-is-a-static-initializer-block-2.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>What is the ClassCastException?</title>
		<link>http://www.ucertify.com/article/what-is-the-classcastexception-2.html</link>
		<comments>http://www.ucertify.com/article/what-is-the-classcastexception-2.html#comments</comments>
		<pubDate>Sun, 04 Oct 2009 00:00:00 +0000</pubDate>
		<dc:creator>uCertify</dc:creator>
				<category><![CDATA[Master CIW Enterprise Developer]]></category>
		<category><![CDATA[SCBCD]]></category>
		<category><![CDATA[SCDJWS]]></category>
		<category><![CDATA[SCJP]]></category>
		<category><![CDATA[SCJP 5/6]]></category>
		<category><![CDATA[SCMAD]]></category>
		<category><![CDATA[SCWCD]]></category>
		<category><![CDATA[CX310-055]]></category>
		<category><![CDATA[CX310-056]]></category>
		<category><![CDATA[CX310-066]]></category>

		<guid isPermaLink="false">4101064</guid>
		<description><![CDATA[The ClassCastException is thrown to show an invalid cast. It indicates that the code has attempted to cast an object to a subclass of which it is not an instance. It is also thrown when an attempt is made to add an incompatible object to a collection. 
 
]]></description>
			<content:encoded><![CDATA[<!-- This is a HTML comment, it will not display in any page. Feel free to remove this comment if it cause any inconvenient to you.
	Thanks for using digg digg, please visit http://www.mkyong.com/blog/digg-digg-wordpress-plugin for any comments and ideas, 
	
    Author : Yong Mook Kim
    Website : http://www.mkyong.com
	--><div><table> <td><iframe src='http://digg.com/api/diggthis.php?w=new&amp;u=http%3A%2F%2Fwww.ucertify.com%2Farticle%2Fwhat-is-the-classcastexception-2.html&amp;t=What+is+the+ClassCastException%3F&amp;s=compact' height='18' width='120' frameborder='0' scrolling='no'></iframe></td> <td><iframe src='http://www.reddit.com/button_content?newwindow=1&amp;url=http%3A%2F%2Fwww.ucertify.com%2Farticle%2Fwhat-is-the-classcastexception-2.html&amp;title=What+is+the+ClassCastException%3F&amp;t=1 ' height='18' width='120' scrolling='no' frameborder='0' ></iframe></td> <td><iframe src='http://widgets.dzone.com/links/widgets/zoneit.html?url=http%3A%2F%2Fwww.ucertify.com%2Farticle%2Fwhat-is-the-classcastexception-2.html&amp;title=What+is+the+ClassCastException%3F&amp;t=2 ' height='18' width='120' scrolling='no' frameborder='0' ></iframe></td> <td><script type="text/javascript"><!--yahooBuzzArticleHeadline=What+is+the+ClassCastException%3F;//--></script><script type="text/javascript" src="http://d.yimg.com/ds/badge2.js" badgetype=small-votes></script></td> <td><iframe src='http://api.tweetmeme.com/button.js?url=http%3A%2F%2Fwww.ucertify.com%2Farticle%2Fwhat-is-the-classcastexception-2.html&amp;source=ucertify&amp;style=compact ' height='20' width='90' frameborder='0' scrolling='no'></iframe></td></table></div><p>The ClassCastException is thrown to show an invalid cast. It indicates that the code has attempted to cast an object to a subclass of which it is not an instance. It is also thrown when an attempt is made to add an incompatible object to a collection. </p>
<p>The syntax of the ClassCastException is as follows:</p>
<p><uc:stx>public class ClassCastException extends RuntimeException.</uc:stx></p>
<ul style='border:1px solid #ccc;background-color:#eff3ef;padding:10px;'><li style='margin-left:10px;'> Best exam simulation <a href="http://www.ucertify.com/certifications/CIW/master-ciw-enterprise-developer.html" >CIW master-ciw-enterprise-developer</a> download free trial.<li style='margin-left:10px;'> Click here to get free <a href="http://www.ucertify.com/certifications/SUN/scbcd.html" >scbcd SCBCD</a> exam practice questions.<li style='margin-left:10px;'> Click here to download <a href="http://www.ucertify.com/certifications/SUN/scdjws.html" >scdjws</a> test study guide and practice question.<li style='margin-left:10px;'> Click here to download <a href="http://www.ucertify.com/certifications/SUN/scjp.html" >scjp</a> test study guide and practice question.<li style='margin-left:10px;'> <a href="http://www.ucertify.com/certifications/SUN/scjp-5-0.html" > Pass SUN scjp-5-0 - SCJP 5/6</a><li style='margin-left:10px;'> Click here to download <a href="http://www.ucertify.com/certifications/SUN/scmad.html" >scmad</a> test study guide and practice question.<li style='margin-left:10px;'> Pass <a href="http://www.ucertify.com/certifications/SUN/scwcd.html" >SCWCD</a> in first attampt.<li style='margin-left:10px;'> Click here to get free <a href="http://www.ucertify.com/exams/SUN/CX310-055.html" >CX310-055 Java 5.0</a> exam practice questions.<li style='margin-left:10px;'> Download free practice test for <a href="http://www.ucertify.com/exams/SUN/CX310-056.html" >SUN SCJP 5.0 Java Upgrade</a> exam.<li style='margin-left:10px;'> Get certified in first attempt download <a href="http://www.ucertify.com/exams/SUN/CX310-066.html" >CX310-066 - SCJP Upgrade</a> simulation.</ul><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fwww.ucertify.com%2Farticle%2Fwhat-is-the-classcastexception-2.html&amp;linkname=What%20is%20the%20ClassCastException%3F"><img src="http://www.ucertify.com/article/wp-content/plugins/add-to-any/share_save_256_24.png" width="256" height="24" alt="Share/Bookmark"/></a>]]></content:encoded>
			<wfw:commentRss>http://www.ucertify.com/article/what-is-the-classcastexception-2.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Skills required for Sun test CX310-056</title>
		<link>http://www.ucertify.com/article/skills-required-for-sun-test-cx310-056-2.html</link>
		<comments>http://www.ucertify.com/article/skills-required-for-sun-test-cx310-056-2.html#comments</comments>
		<pubDate>Sun, 04 Oct 2009 00:00:00 +0000</pubDate>
		<dc:creator>uCertify</dc:creator>
				<category><![CDATA[SCJP]]></category>
		<category><![CDATA[SCJP 5/6]]></category>
		<category><![CDATA[CX310-056]]></category>

		<guid isPermaLink="false">4101067</guid>
		<description><![CDATA[Sun has specified more than twenty-five objectives for Sun test CX310-056 (Sun Certified Programmer for the Java 2 Platform, Standard Edition 5.0 Upgrade Exam), which are grouped under seven topics. Before taking the test, an individual should possess goo]]></description>
			<content:encoded><![CDATA[<!-- This is a HTML comment, it will not display in any page. Feel free to remove this comment if it cause any inconvenient to you.
	Thanks for using digg digg, please visit http://www.mkyong.com/blog/digg-digg-wordpress-plugin for any comments and ideas, 
	
    Author : Yong Mook Kim
    Website : http://www.mkyong.com<span style='border:1px solid #ccc;background-color:#eff3ef;'> Download free practice test for <a href="http://www.ucertify.com/certifications/SUN/scjp.html" >scjp  SCJP</a> exam.</span>
	--><div><table> <td><iframe src='http://digg.com/api/diggthis.php?w=new&amp;u=http%3A%2F%2Fwww.ucertify.com%2Farticle%2Fskills-required-for-sun-test-cx310-056-2.html&amp;t=Skills+required+for+Sun+test+CX310-056&amp;s=compact' height='18' width='120' frameborder='0' scrolling='no'></iframe></td> <td><iframe src='http://www.reddit.com/button_content?newwindow=1&amp;url=http%3A%2F%2Fwww.ucertify.com%2Farticle%2Fskills-required-for-sun-test-cx310-056-2.html&amp;title=Skills+required+for+Sun+test+CX310-056&amp;t=1 ' height='18' width='120' scrolling='no' frameborder='0' ></iframe></td> <td><iframe src='http://widgets.dzone.com/links/widgets/zoneit.html?url=http%3A%2F%2Fwww.ucertify.com%2Farticle%2Fskills-required-for-sun-test-cx310-056-2.html&amp;title=Skills+required+for+Sun+test+CX310-056&amp;t=2 ' height='18' width='120' scrolling='no' frameborder='0' ></iframe></td> <td><script type="text/javascript"><!--yahooBuzzArticleHeadline=Skills+required+for+Sun+test+CX310-056;//--></script><script type="text/javascript" src="http://d.yimg.com/ds/badge2.js" badgetype=small-votes></script></td> <td><iframe src='http://api.tweetmeme.com/button.js?url=http%3A%2F%2Fwww.ucertify.com%2Farticle%2Fskills-required-for-sun-test-cx310-056-2.html&amp;source=ucertify&amp;style=compact ' height='20' width='90' frameborder='0' scrolling='no'></iframe></td></table></div><p>Sun has specified more than twenty-five objectives for Sun test CX310-056 (Sun Certified Programmer for the Java 2 Platform, Standard Edition 5.0 Upgrade Exam), which are grouped under seven topics. Before taking the test, an individual should possess good command over the following areas:</p>
<ol></p>
<li> Developing code that declares all kinds of classes, nested and inner classes, interfaces, packages, import statements, enums and abstract classes. </li>
<p></p>
<li>Developing code that declares, initializes and uses primitives, arrays, enums, and objects as static, local, and instance variables. </li>
<p></p>
<li>Using JavaBeans naming conventions in  code. Using the variable-length argument list in the code.</li>
<p></p>
<li>Making proper use of overloading, overriding, and method declaration. Determining if a default constructor will be created.</li>
<p></p>
<li>Developing code using the if, switch, while, do-while, labels, break, continue, for and enhanced for loop statements.</li>
<p></p>
<li>Developing code that makes proper use of exceptions and exception handling clauses. Differentiating between Runtime exceptions, checked exceptions, and errors.</li>
<p></p>
<li>Recognizing the situation in which different exceptions will be thrown. Understanding which exceptions are thrown by JVM and which are thrown programmatically.</li>
<p></p>
<li>Developing code for using a Wrapper with and without autoboxing/unboxing. Differentiating between the String, StringBuffer, and StringBuilder classes.</li>
<p></p>
<li>Developing code for reading from and writing to a file using java.io. Classes used are BufferedReader, BufferedWriter, File, FileReader, FileWriter, PrintWriter, DataInputStream, DataOutputStream, FileInputStream, FileOutputStream, ObjectInputStream, ObjectOutputStream, and Serializable.</li>
<p></p>
<li>Using the java.text package to correctly format or parse date, number and currency value. Making use of the  java.util.Locale class and describing its use.</li>
<p></p>
<li>Understanding API in java.util and java.util.regex. Using the Pattern and Matcher classes to write code. Using the Scanner and the Formatter classes and the String.split() method.</li>
<p></p>
<li>Using java.lang.Thread and java.lang.Runnable to start a new thread. Recognizing various states of a thread and their transition from one state to another.</li>
<p></p>
<li>Writing code to implement loose coupling, high cohesion, and tight encapsulation. Writing code that demonstrates the use of Polymorphism. Understanding the difference between overloading and overriding.</li>
<p></p>
<li>Using generics with the Collection API, particularly with Set, List, and Map interfaces. Differentiating between generic and non-generic versions of the Collection API. Writing generic methods using the wildcard types.</li>
<p></p>
<li>Using the java.util package to write code to manipulate a list by sorting, performing binary search, and understanding conversion of list to Array. Using the Comparator and Comparable interfaces to manipulate an array by sorting, performing binary search and conversion of array to list.</li>
<p></p>
<li>Writing code examples using access modifiers, package declaration, and the import statement. Determining the expected Runtime behavior for the given  code.</li>
<p></p>
<li>Deploying class files inside/outside JAR, and determining the correct classpath for the file compilation. Using various operators in  code including the assignment, arithmetic, relational, instanceof, logical, and conditional operators.
</li>
</ol>
<span style='border:1px solid #ccc;background-color:#eff3ef;'> Best exam simulation <a href="http://www.ucertify.com/certifications/SUN/scjp-5-0.html" >SUN scjp-5-0</a> download free trial.</span><span style='border:1px solid #ccc;background-color:#eff3ef;'> Get certified in first attempt download <a href="http://www.ucertify.com/exams/SUN/CX310-056.html" >CX310-056 - SCJP 5.0 Java Upgrade</a> simulation.</span><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fwww.ucertify.com%2Farticle%2Fskills-required-for-sun-test-cx310-056-2.html&amp;linkname=Skills%20required%20for%20Sun%20test%20CX310-056"><img src="http://www.ucertify.com/article/wp-content/plugins/add-to-any/share_save_256_24.png" width="256" height="24" alt="Share/Bookmark"/></a>]]></content:encoded>
			<wfw:commentRss>http://www.ucertify.com/article/skills-required-for-sun-test-cx310-056-2.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>What is an IllegalStateException?</title>
		<link>http://www.ucertify.com/article/what-is-an-illegalstateexception-2.html</link>
		<comments>http://www.ucertify.com/article/what-is-an-illegalstateexception-2.html#comments</comments>
		<pubDate>Sun, 04 Oct 2009 00:00:00 +0000</pubDate>
		<dc:creator>uCertify</dc:creator>
				<category><![CDATA[Master CIW Enterprise Developer]]></category>
		<category><![CDATA[SCBCD]]></category>
		<category><![CDATA[SCDJWS]]></category>
		<category><![CDATA[SCJP]]></category>
		<category><![CDATA[SCJP 5/6]]></category>
		<category><![CDATA[SCMAD]]></category>
		<category><![CDATA[SCWCD]]></category>
		<category><![CDATA[CJP-JAVA-6]]></category>
		<category><![CDATA[CX310-055]]></category>
		<category><![CDATA[CX310-056]]></category>
		<category><![CDATA[CX310-065]]></category>
		<category><![CDATA[CX310-066]]></category>

		<guid isPermaLink="false">4101071</guid>
		<description><![CDATA[An IllegalStateException is a kind of runtime exception. It is used to indicate that a method has been invoked on an object that is not in an appropriate state to perform the requested operation. This means that the method has been invoked at an inappropr]]></description>
			<content:encoded><![CDATA[<!-- This is a HTML comment, it will not display in any page. Feel free to remove this comment if it cause any inconvenient to you.
	Thanks for using digg digg, please visit http://www.mkyong.com/blog/digg-digg-wordpress-plugin for any comments and ideas, 
	
    Author : Yong Mook Kim
    Website : http://www.mkyong.com
	--><div><table> <td><iframe src='http://digg.com/api/diggthis.php?w=new&amp;u=http%3A%2F%2Fwww.ucertify.com%2Farticle%2Fwhat-is-an-illegalstateexception-2.html&amp;t=What+is+an+IllegalStateException%3F&amp;s=compact' height='18' width='120' frameborder='0' scrolling='no'></iframe></td> <td><iframe src='http://www.reddit.com/button_content?newwindow=1&amp;url=http%3A%2F%2Fwww.ucertify.com%2Farticle%2Fwhat-is-an-illegalstateexception-2.html&amp;title=What+is+an+IllegalStateException%3F&amp;t=1 ' height='18' width='120' scrolling='no' frameborder='0' ></iframe></td> <td><iframe src='http://widgets.dzone.com/links/widgets/zoneit.html?url=http%3A%2F%2Fwww.ucertify.com%2Farticle%2Fwhat-is-an-illegalstateexception-2.html&amp;title=What+is+an+IllegalStateException%3F&amp;t=2 ' height='18' width='120' scrolling='no' frameborder='0' ></iframe></td> <td><script type="text/javascript"><!--yahooBuzzArticleHeadline=What+is+an+IllegalStateException%3F;//--></script><script type="text/javascript" src="http://d.yimg.com/ds/badge2.js" badgetype=small-votes></script></td> <td><iframe src='http://api.tweetmeme.com/button.js?url=http%3A%2F%2Fwww.ucertify.com%2Farticle%2Fwhat-is-an-illegalstateexception-2.html&amp;source=ucertify&amp;style=compact ' height='20' width='90' frameborder='0' scrolling='no'></iframe></td></table></div><p>An IllegalStateException is a kind of runtime exception. It is used to indicate that a method has been invoked on an object that is not in an appropriate state to perform the requested operation. This means that the method has been invoked at an inappropriate time. </p>
<p>Following constructors are used to represent an IllegalStateException:</p>
<ul></p>
<li><uc:stx>public IllegalStateException();</uc:stx> <br />
It constructs an IllegalStateException without any detailed message.
</li>
<p></p>
<li><uc:stx>public IllegalStateException(String str); </uc:stx> <br />
 It constructs an IllegalStateException with a detailed message specified by the string str. </li>
</ul>
<ul style='border:1px solid #ccc;background-color:#eff3ef;padding:10px;'><li style='margin-left:10px;'> Best exam simulation <a href="http://www.ucertify.com/certifications/CIW/master-ciw-enterprise-developer.html" >CIW master-ciw-enterprise-developer</a> download free trial.<li style='margin-left:10px;'> Click here to get free <a href="http://www.ucertify.com/certifications/SUN/scbcd.html" >scbcd SCBCD</a> exam practice questions.<li style='margin-left:10px;'> Download practice question and study guide for  <a href="http://www.ucertify.com/certifications/SUN/scdjws.html" >scdjws</a> for exam.<li style='margin-left:10px;'> Click here to download <a href="http://www.ucertify.com/certifications/SUN/scjp.html" >scjp</a> test study guide and practice question.<li style='margin-left:10px;'> Download free practice test for <a href="http://www.ucertify.com/certifications/SUN/scjp-5-0.html" >scjp-5-0  SCJP 5/6</a> exam.<li style='margin-left:10px;'> Click here to get free <a href="http://www.ucertify.com/certifications/SUN/scmad.html" >scmad SCMAD</a> exam practice questions.<li style='margin-left:10px;'> Download free practice test for <a href="http://www.ucertify.com/certifications/SUN/scwcd.html" >scwcd  SCWCD</a> exam.<li style='margin-left:10px;'> Download practice question and study guide for  <a href="http://www.ucertify.com/exams/SUN/CX310-055.html" >CX310-055</a> for exam.<li style='margin-left:10px;'> Click here to get free <a href="http://www.ucertify.com/exams/SUN/CX310-056.html" >CX310-056 SCJP 5.0 Java Upgrade</a> exam practice questions.<li style='margin-left:10px;'> Click here to download <a href="http://www.ucertify.com/exams/SUN/CX310-065.html" >CX310-065</a> test study guide and practice question.<li style='margin-left:10px;'> Best exam simulation <a href="http://www.ucertify.com/exams/SUN/CX310-066.html" >SUN CX310-066</a> download free trial.</ul><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fwww.ucertify.com%2Farticle%2Fwhat-is-an-illegalstateexception-2.html&amp;linkname=What%20is%20an%20IllegalStateException%3F"><img src="http://www.ucertify.com/article/wp-content/plugins/add-to-any/share_save_256_24.png" width="256" height="24" alt="Share/Bookmark"/></a>]]></content:encoded>
			<wfw:commentRss>http://www.ucertify.com/article/what-is-an-illegalstateexception-2.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>What is an IllegalArgumentException?</title>
		<link>http://www.ucertify.com/article/what-is-an-illegalargumentexception-2.html</link>
		<comments>http://www.ucertify.com/article/what-is-an-illegalargumentexception-2.html#comments</comments>
		<pubDate>Sat, 03 Oct 2009 00:00:00 +0000</pubDate>
		<dc:creator>uCertify</dc:creator>
				<category><![CDATA[Master CIW Enterprise Developer]]></category>
		<category><![CDATA[SCBCD]]></category>
		<category><![CDATA[SCDJWS]]></category>
		<category><![CDATA[SCJP]]></category>
		<category><![CDATA[SCJP 5/6]]></category>
		<category><![CDATA[SCMAD]]></category>
		<category><![CDATA[SCWCD]]></category>
		<category><![CDATA[CX310-055]]></category>
		<category><![CDATA[CX310-056]]></category>
		<category><![CDATA[CX310-065]]></category>
		<category><![CDATA[CX310-066]]></category>

		<guid isPermaLink="false">4101029</guid>
		<description><![CDATA[An IllegalArgumentException extends from RuntimeException to indicate that a method has been passed an illegal or  inappropriate argument. There are two kinds of constructors for IllegalArgumentException as follows: 
public IllegalArgumentException( )  
I]]></description>
			<content:encoded><![CDATA[<!-- This is a HTML comment, it will not display in any page. Feel free to remove this comment if it cause any inconvenient to you.
	Thanks for using digg digg, please visit http://www.mkyong.com/blog/digg-digg-wordpress-plugin for any comments and ideas, 
	
    Author : Yong Mook Kim
    Website : http://www.mkyong.com
	--><div><table> <td><iframe src='http://digg.com/api/diggthis.php?w=new&amp;u=http%3A%2F%2Fwww.ucertify.com%2Farticle%2Fwhat-is-an-illegalargumentexception-2.html&amp;t=What+is+an+IllegalArgumentException%3F&amp;s=compact' height='18' width='120' frameborder='0' scrolling='no'></iframe></td> <td><iframe src='http://www.reddit.com/button_content?newwindow=1&amp;url=http%3A%2F%2Fwww.ucertify.com%2Farticle%2Fwhat-is-an-illegalargumentexception-2.html&amp;title=What+is+an+IllegalArgumentException%3F&amp;t=1 ' height='18' width='120' scrolling='no' frameborder='0' ></iframe></td> <td><iframe src='http://widgets.dzone.com/links/widgets/zoneit.html?url=http%3A%2F%2Fwww.ucertify.com%2Farticle%2Fwhat-is-an-illegalargumentexception-2.html&amp;title=What+is+an+IllegalArgumentException%3F&amp;t=2 ' height='18' width='120' scrolling='no' frameborder='0' ></iframe></td> <td><script type="text/javascript"><!--yahooBuzzArticleHeadline=What+is+an+IllegalArgumentException%3F;//--></script><script type="text/javascript" src="http://d.yimg.com/ds/badge2.js" badgetype=small-votes></script></td> <td><iframe src='http://api.tweetmeme.com/button.js?url=http%3A%2F%2Fwww.ucertify.com%2Farticle%2Fwhat-is-an-illegalargumentexception-2.html&amp;source=ucertify&amp;style=compact ' height='20' width='90' frameborder='0' scrolling='no'></iframe></td></table></div><p>An IllegalArgumentException extends from RuntimeException to indicate that a method has been passed an illegal or  inappropriate argument. There are two kinds of constructors for IllegalArgumentException as follows: </p>
<ul>
<li><uc:stx>public IllegalArgumentException( ) </uc:stx> <br />
It constructs an IllegalArgumentException without any detailed message. </li>
<li><uc:stx>public IllegalArgumentException(String str) </uc:stx> <br />
It constructs an IllegalArgumentException with the specified detailed message.</li>
</ul>
<ul style='border:1px solid #ccc;background-color:#eff3ef;padding:10px;'><li style='margin-left:10px;'> Best exam simulation <a href="http://www.ucertify.com/certifications/CIW/master-ciw-enterprise-developer.html" >CIW master-ciw-enterprise-developer</a> download free trial.<li style='margin-left:10px;'> <a href="http://www.ucertify.com/certifications/SUN/scbcd.html" > Pass SUN scbcd - SCBCD</a><li style='margin-left:10px;'> Click here to get free <a href="http://www.ucertify.com/certifications/SUN/scdjws.html" >scdjws SCDJWS</a> exam practice questions.<li style='margin-left:10px;'> Get certified in first attempt download <a href="http://www.ucertify.com/certifications/SUN/scjp.html" >scjp - SCJP</a> simulation.<li style='margin-left:10px;'> Download free practice test for <a href="http://www.ucertify.com/certifications/SUN/scjp-5-0.html" >SUN SCJP 5/6</a> exam.<li style='margin-left:10px;'> Download free practice test for <a href="http://www.ucertify.com/certifications/SUN/scmad.html" >SUN SCMAD</a> exam.<li style='margin-left:10px;'> Click here to get free <a href="http://www.ucertify.com/certifications/SUN/scwcd.html" >scwcd SCWCD</a> exam practice questions.<li style='margin-left:10px;'> Pass <a href="http://www.ucertify.com/exams/SUN/CX310-055.html" >Java 5.0</a> in first attampt.<li style='margin-left:10px;'> Click here to download <a href="http://www.ucertify.com/exams/SUN/CX310-056.html" >CX310-056</a> test study guide and practice question.<li style='margin-left:10px;'> Become <a href="http://www.ucertify.com/exams/SUN/CX310-065.html" >SUN SCJP 6.0</a> certified.<li style='margin-left:10px;'> Best exam simulation <a href="http://www.ucertify.com/exams/SUN/CX310-066.html" >SUN CX310-066</a> download free trial.</ul><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fwww.ucertify.com%2Farticle%2Fwhat-is-an-illegalargumentexception-2.html&amp;linkname=What%20is%20an%20IllegalArgumentException%3F"><img src="http://www.ucertify.com/article/wp-content/plugins/add-to-any/share_save_256_24.png" width="256" height="24" alt="Share/Bookmark"/></a>]]></content:encoded>
			<wfw:commentRss>http://www.ucertify.com/article/what-is-an-illegalargumentexception-2.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>What is the printf() method?</title>
		<link>http://www.ucertify.com/article/what-is-the-printf-method-2.html</link>
		<comments>http://www.ucertify.com/article/what-is-the-printf-method-2.html#comments</comments>
		<pubDate>Sat, 03 Oct 2009 00:00:00 +0000</pubDate>
		<dc:creator>uCertify</dc:creator>
				<category><![CDATA[Master CIW Enterprise Developer]]></category>
		<category><![CDATA[SCBCD]]></category>
		<category><![CDATA[SCDJWS]]></category>
		<category><![CDATA[SCJP]]></category>
		<category><![CDATA[SCJP 5/6]]></category>
		<category><![CDATA[SCMAD]]></category>
		<category><![CDATA[SCWCD]]></category>
		<category><![CDATA[CJP-JAVA-6]]></category>
		<category><![CDATA[CX310-055]]></category>
		<category><![CDATA[CX310-056]]></category>
		<category><![CDATA[CX310-065]]></category>
		<category><![CDATA[CX310-066]]></category>

		<guid isPermaLink="false">4101062</guid>
		<description><![CDATA[The printf() method is used to output a formatted string to the console. This method automatically uses the Formatter to create a formatted string. The printf() method is very similar to the format() method present in the Formatter class. This method is p]]></description>
			<content:encoded><![CDATA[<!-- This is a HTML comment, it will not display in any page. Feel free to remove this comment if it cause any inconvenient to you.
	Thanks for using digg digg, please visit http://www.mkyong.com/blog/digg-digg-wordpress-plugin for any comments and ideas, 
	
    Author : Yong Mook Kim
    Website : http://www.mkyong.com
	--><div><table> <td><iframe src='http://digg.com/api/diggthis.php?w=new&amp;u=http%3A%2F%2Fwww.ucertify.com%2Farticle%2Fwhat-is-the-printf-method-2.html&amp;t=What+is+the+printf%28%29+method%3F&amp;s=compact' height='18' width='120' frameborder='0' scrolling='no'></iframe></td> <td><iframe src='http://www.reddit.com/button_content?newwindow=1&amp;url=http%3A%2F%2Fwww.ucertify.com%2Farticle%2Fwhat-is-the-printf-method-2.html&amp;title=What+is+the+printf%28%29+method%3F&amp;t=1 ' height='18' width='120' scrolling='no' frameborder='0' ></iframe></td> <td><iframe src='http://widgets.dzone.com/links/widgets/zoneit.html?url=http%3A%2F%2Fwww.ucertify.com%2Farticle%2Fwhat-is-the-printf-method-2.html&amp;title=What+is+the+printf%28%29+method%3F&amp;t=2 ' height='18' width='120' scrolling='no' frameborder='0' ></iframe></td> <td><script type="text/javascript"><!--yahooBuzzArticleHeadline=What+is+the+printf%28%29+method%3F;//--></script><script type="text/javascript" src="http://d.yimg.com/ds/badge2.js" badgetype=small-votes></script></td> <td><iframe src='http://api.tweetmeme.com/button.js?url=http%3A%2F%2Fwww.ucertify.com%2Farticle%2Fwhat-is-the-printf-method-2.html&amp;source=ucertify&amp;style=compact ' height='20' width='90' frameborder='0' scrolling='no'></iframe></td></table></div><p>The printf() method is used to output a formatted string to the console. This method automatically uses the <uc:kwd>Formatter</uc:kwd> to create a formatted string. The printf() method is very similar to the format() method present in the Formatter class. This method is present in both the PrintWriter and PrintStream classes. </p>
<p>The printf() method has the following general forms:</p>
<ul></p>
<li><uc:stx>printf(String fmt, Object&#8230;args)</uc:stx></li>
<p>: This form writes the args to the standard output in the format specified by fmt. It uses the default locale.</p>
<li><uc:stx>printf (Local loc, String fmt, Object&#8230;args)</uc:stx></li>
<p>: This form allows a user to specify his own locale. </ul>
<p>In both the above forms, the return type of the methods can be either the PrintWriter class or the PrintStream class. In both the forms of the printf() method, variable-arguments are used. This is the reason why printf() was not used in the earlier versions of Java, as earlier versions did not support varargs.</p>
<ul style='border:1px solid #ccc;background-color:#eff3ef;padding:10px;'><li style='margin-left:10px;'> Click here to download <a href="http://www.ucertify.com/certifications/CIW/master-ciw-enterprise-developer.html" >master-ciw-enterprise-developer</a> test study guide and practice question.<li style='margin-left:10px;'> Best exam simulation <a href="http://www.ucertify.com/certifications/SUN/scbcd.html" >SUN scbcd</a> download free trial.<li style='margin-left:10px;'> Click here to get free <a href="http://www.ucertify.com/certifications/SUN/scdjws.html" >scdjws SCDJWS</a> exam practice questions.<li style='margin-left:10px;'> Download practice question and study guide for  <a href="http://www.ucertify.com/certifications/SUN/scjp.html" >scjp</a> for exam.<li style='margin-left:10px;'> Become <a href="http://www.ucertify.com/certifications/SUN/scjp-5-0.html" >SUN SCJP 5/6</a> certified.<li style='margin-left:10px;'> Download free practice test for <a href="http://www.ucertify.com/certifications/SUN/scmad.html" >scmad  SCMAD</a> exam.<li style='margin-left:10px;'> Download practice question and study guide for  <a href="http://www.ucertify.com/certifications/SUN/scwcd.html" >scwcd</a> for exam.<li style='margin-left:10px;'> Download free practice test for <a href="http://www.ucertify.com/exams/SUN/CX310-055.html" >CX310-055  Java 5.0</a> exam.<li style='margin-left:10px;'> Download free practice test for <a href="http://www.ucertify.com/exams/SUN/CX310-056.html" >SUN SCJP 5.0 Java Upgrade</a> exam.<li style='margin-left:10px;'> <a href="http://www.ucertify.com/exams/SUN/CX310-065.html" > Pass SUN CX310-065 - SCJP 6.0</a><li style='margin-left:10px;'> Download practice question and study guide for  <a href="http://www.ucertify.com/exams/SUN/CX310-066.html" >CX310-066</a> for exam.</ul><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fwww.ucertify.com%2Farticle%2Fwhat-is-the-printf-method-2.html&amp;linkname=What%20is%20the%20printf%28%29%20method%3F"><img src="http://www.ucertify.com/article/wp-content/plugins/add-to-any/share_save_256_24.png" width="256" height="24" alt="Share/Bookmark"/></a>]]></content:encoded>
			<wfw:commentRss>http://www.ucertify.com/article/what-is-the-printf-method-2.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
