<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>SCJP Certification &#187; Java Questions</title>
	<atom:link href="http://www.scjp-certification.com/category/java-questions/feed" rel="self" type="application/rss+xml" />
	<link>http://www.scjp-certification.com</link>
	<description>Sun Certified Java Programmer Certification exam essentials</description>
	<lastBuildDate>Fri, 30 Sep 2011 05:54:18 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>What is the createNewFile() method of the File class?</title>
		<link>http://www.scjp-certification.com/what-is-the-createnewfile-method-of-the-file-class.html</link>
		<comments>http://www.scjp-certification.com/what-is-the-createnewfile-method-of-the-file-class.html#comments</comments>
		<pubDate>Sat, 12 Dec 2009 12:18:13 +0000</pubDate>
		<dc:creator>Daisy Williams</dc:creator>
				<category><![CDATA[Java Questions]]></category>
		<category><![CDATA[createNewFile()]]></category>
		<category><![CDATA[File class]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[method]]></category>

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

		<guid isPermaLink="false">http://www.scjp-certification.com/?p=465</guid>
		<description><![CDATA[class TestInstanceof { public static void main(String[] args) { Integer i=5; Boolean b; b=(i instanceof Integer); System.out.print(b); b=(i instanceof Number);...]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.scjp-certification.com%2Fwhat-will-be-the-output-of-the-following-code-2.html"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.scjp-certification.com%2Fwhat-will-be-the-output-of-the-following-code-2.html&amp;style=normal&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p><strong>class TestInstanceof {<br />
 public static void main(String[] args) {<br />
  Integer i=5;<br />
  Boolean b;<br />
  b=(i instanceof Integer);<br />
  System.out.print(b);<br />
  b=(i instanceof Number);<br />
  System.out.println(b);<br />
  }<br />
}</strong></p>
<p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.scjp-certification.com%2Fwhat-will-be-the-output-of-the-following-code-2.html&amp;title=What%20will%20be%20the%20output%20of%20the%20following%20code%3F"><img src="http://www.scjp-certification.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a> </p>]]></content:encoded>
			<wfw:commentRss>http://www.scjp-certification.com/what-will-be-the-output-of-the-following-code-2.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Which of the following operations are allowed for collection framework?</title>
		<link>http://www.scjp-certification.com/which-of-the-following-operations-are-allowed-for-collection-framework.html</link>
		<comments>http://www.scjp-certification.com/which-of-the-following-operations-are-allowed-for-collection-framework.html#comments</comments>
		<pubDate>Fri, 04 Dec 2009 11:46:36 +0000</pubDate>
		<dc:creator>Daisy Williams</dc:creator>
				<category><![CDATA[Java Questions]]></category>
		<category><![CDATA[cx310-065]]></category>
		<category><![CDATA[exam questions]]></category>
		<category><![CDATA[scjp question]]></category>
		<category><![CDATA[study guide]]></category>

		<guid isPermaLink="false">http://www.scjp-certification.com/?p=461</guid>
		<description><![CDATA[A: Adding objects to a collection B: Iterating through a collection C: Finding out if an object is in a...]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.scjp-certification.com%2Fwhich-of-the-following-operations-are-allowed-for-collection-framework.html"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.scjp-certification.com%2Fwhich-of-the-following-operations-are-allowed-for-collection-framework.html&amp;style=normal&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p><strong>A:</strong> Adding objects to a collection<br />
<strong>B:</strong> Iterating through a collection<br />
<strong>C:</strong> Finding out if an object is in a collection<br />
<strong>D:</strong> Retrieving an object from a collection</p>
<p>All answer options are correct because:</p>
<p>The Collections Framework in Java is a hierarchy of interfaces and classes that provides a technology for managing a group of objects. It is used to provide a central and unified theme for managing a group of objects. The Java Collections Framework is designed to meet the following goals:
<ul>
<li>To offer high performance in terms of efficiency.</li>
<li>To allow different types of collections to work in a similar way and with a high degree of interoperability.</li>
<li>To ensure collections are flexible and can be easily extended.</li>
</ul>
<p>Following are the basic types of operations allowed in a collection:
<ul>
<li>Adding objects to a collection</li>
<li>Removing objects from a collection.</li>
<li>Retrieving an object from a collection.</li>
<li>Finding out if an object is in a collection.</li>
<li> Iterating through a collection.</li>
</ul>
<p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.scjp-certification.com%2Fwhich-of-the-following-operations-are-allowed-for-collection-framework.html&amp;title=Which%20of%20the%20following%20operations%20are%20allowed%20for%20collection%20framework%3F"><img src="http://www.scjp-certification.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a> </p>]]></content:encoded>
			<wfw:commentRss>http://www.scjp-certification.com/which-of-the-following-operations-are-allowed-for-collection-framework.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>What will be the output of the following program code?</title>
		<link>http://www.scjp-certification.com/what-will-be-the-output-of-the-following-program-code-3.html</link>
		<comments>http://www.scjp-certification.com/what-will-be-the-output-of-the-following-program-code-3.html#comments</comments>
		<pubDate>Thu, 03 Dec 2009 11:55:38 +0000</pubDate>
		<dc:creator>Daisy Williams</dc:creator>
				<category><![CDATA[Java Questions]]></category>

		<guid isPermaLink="false">http://www.scjp-certification.com/?p=459</guid>
		<description><![CDATA[import java.util.*; public class TestArray{ public static void main(String[] args){ TestArray test = new TestArray(); test.go(); } public void go(){...]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.scjp-certification.com%2Fwhat-will-be-the-output-of-the-following-program-code-3.html"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.scjp-certification.com%2Fwhat-will-be-the-output-of-the-following-program-code-3.html&amp;style=normal&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p><strong>import java.util.*;<br />
public class TestArray{<br />
public static void main(String[] args){<br />
TestArray test = new TestArray();<br />
test.go();<br />
}<br />
public void go(){<br />
int[] arr = new int[] {1,2,3,4,5,6};<br />
//add code here<br />
}<br />
}</strong>  </p>
<p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.scjp-certification.com%2Fwhat-will-be-the-output-of-the-following-program-code-3.html&amp;title=What%20will%20be%20the%20output%20of%20the%20following%20program%20code%3F"><img src="http://www.scjp-certification.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a> </p>]]></content:encoded>
			<wfw:commentRss>http://www.scjp-certification.com/what-will-be-the-output-of-the-following-program-code-3.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>What will be the output of the following program code?</title>
		<link>http://www.scjp-certification.com/what-will-be-the-output-of-the-following-program-code-2.html</link>
		<comments>http://www.scjp-certification.com/what-will-be-the-output-of-the-following-program-code-2.html#comments</comments>
		<pubDate>Tue, 24 Nov 2009 11:43:54 +0000</pubDate>
		<dc:creator>Daisy Williams</dc:creator>
				<category><![CDATA[Java Questions]]></category>
		<category><![CDATA[exam guide]]></category>
		<category><![CDATA[free question]]></category>
		<category><![CDATA[free questions]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[SCJP]]></category>
		<category><![CDATA[study guide]]></category>

		<guid isPermaLink="false">http://www.scjp-certification.com/?p=440</guid>
		<description><![CDATA[public class Exc { public static void main(String args[]) { int x1=0; try { int x3= 100/x1; } catch(ArithmeticException e)...]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.scjp-certification.com%2Fwhat-will-be-the-output-of-the-following-program-code-2.html"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.scjp-certification.com%2Fwhat-will-be-the-output-of-the-following-program-code-2.html&amp;style=normal&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>public class Exc<br />
 {<br />
   public static void main(String args[])<br />
     {<br />
       int x1=0;<br />
       try {<br />
           int x3= 100/x1;<br />
          } catch(ArithmeticException e) {<br />
           System.out.println(&#8220;Illegal operation&#8221;);<br />
          } catch(RuntimeException e) {<br />
             System.out.println(&#8220;runtime error&#8221;);<br />
              return;<br />
          } catch(Exception e) {<br />
             System.out.println(&#8220;Exception found&#8221;);<br />
          } finally {<br />
             System.out.println(&#8220;Complete&#8221;);<br />
         }<br />
       System.out.println(&#8220;Successfully&#8221;);<br />
 }<br />
} </p>
<p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.scjp-certification.com%2Fwhat-will-be-the-output-of-the-following-program-code-2.html&amp;title=What%20will%20be%20the%20output%20of%20the%20following%20program%20code%3F"><img src="http://www.scjp-certification.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a> </p>]]></content:encoded>
			<wfw:commentRss>http://www.scjp-certification.com/what-will-be-the-output-of-the-following-program-code-2.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>What will be the output of the following program code?</title>
		<link>http://www.scjp-certification.com/what-will-be-the-output-of-the-following-program-code.html</link>
		<comments>http://www.scjp-certification.com/what-will-be-the-output-of-the-following-program-code.html#comments</comments>
		<pubDate>Mon, 23 Nov 2009 11:59:31 +0000</pubDate>
		<dc:creator>Daisy Williams</dc:creator>
				<category><![CDATA[Java Questions]]></category>
		<category><![CDATA[break]]></category>
		<category><![CDATA[exam guide]]></category>
		<category><![CDATA[program code]]></category>
		<category><![CDATA[questions]]></category>
		<category><![CDATA[study guide]]></category>
		<category><![CDATA[switch]]></category>

		<guid isPermaLink="false">http://www.scjp-certification.com/?p=437</guid>
		<description><![CDATA[class Ques0357{ public static void main(String[] argv){ int s = 2; switch (s) { case 1: System.out.println(&#8220;Fred&#8221;); break; case 2:...]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.scjp-certification.com%2Fwhat-will-be-the-output-of-the-following-program-code.html"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.scjp-certification.com%2Fwhat-will-be-the-output-of-the-following-program-code.html&amp;style=normal&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p><strong>class Ques0357{<br />
   public static void main(String[] argv){<br />
       int s = 2;<br />
       switch (s) {<br />
          case 1:<br />
               System.out.println(&#8220;Fred&#8221;);<br />
               break;<br />
           case 2:<br />
               System.out.println(&#8220;Fast&#8221;);<br />
           case 3:<br />
               System.out.println(&#8220;Tech&#8221;);<br />
           default:<br />
               System.out.println(&#8220;default&#8221;);<br />
       }<br />
   }<br />
}</strong></p>
<p>The break statement is used inside the code block following the <a href="http://www.scjp-certification.com/the-switch-statement.html">switch</a> statement to terminate the execution of a statement sequence. As soon as a break statement is encountered, the program control is transferred to the first line of code that follows the entire switch statement.</p>
<p>In the given program, the argument to the switch statement is an int value 2. Therefore, the program control will be transferred at the matching case label, i.e., at line number 8. As there is no break statement after line number 7, the execution of the code will continue to fall through and all the statements after line number 8 will be executed. Therefore, the execution of the program will display Fast Tech default as the output. </p>
<p>http://www.scjp-certification.com/what-is-the-for-each-loop.html</p>
<p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.scjp-certification.com%2Fwhat-will-be-the-output-of-the-following-program-code.html&amp;title=What%20will%20be%20the%20output%20of%20the%20following%20program%20code%3F"><img src="http://www.scjp-certification.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a> </p>]]></content:encoded>
			<wfw:commentRss>http://www.scjp-certification.com/what-will-be-the-output-of-the-following-program-code.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Constructors</title>
		<link>http://www.scjp-certification.com/constructors.html</link>
		<comments>http://www.scjp-certification.com/constructors.html#comments</comments>
		<pubDate>Tue, 17 Nov 2009 11:47:54 +0000</pubDate>
		<dc:creator>Daisy Williams</dc:creator>
				<category><![CDATA[Java Questions]]></category>
		<category><![CDATA[constructor]]></category>
		<category><![CDATA[exam guide]]></category>
		<category><![CDATA[free question]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[overriden]]></category>
		<category><![CDATA[question]]></category>
		<category><![CDATA[study guide]]></category>
		<category><![CDATA[super]]></category>

		<guid isPermaLink="false">http://www.scjp-certification.com/?p=418</guid>
		<description><![CDATA[If a class Student creates two student objects. Which of the following statements are true about its constructors? A: The...]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.scjp-certification.com%2Fconstructors.html"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.scjp-certification.com%2Fconstructors.html&amp;style=normal&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>If a class Student creates two student objects.  Which of the following statements are true about its constructors?</p>
<p> A: The compiler can call to super() in any constructor that has a call to this().<br />
 B: If a constructor is not declared in the code, a default constructor will be automatically generated by the compiler.<br />
 C: Constructors can be overridden.<br />
 D: The compiler cannot call to super() in any constructor that has a call to this()</p>
<p>ANSWERS: </p>
<p>If a  <a href="http://www.scjp-certification.com/what-is-a-constructor-2.html">constructor</a> has a call to this(), the compiler will know that the constructor is not using the call to super(). A constructor can never have both a call to super() and a call to this() because one of these will be used as the first statement in the constructor. The compiler will not put a call to super() that is using a call to this().</p>
<p>If a constructor is not declared in the code, a default constructor will be automatically generated by the compiler. A constructor without any parameters is known as a default constructor. When a class is defined without any constructor, the Java compiler provides an implicit default constructor. </p>
<p>When the implicit default constructor of a class is invoked, it implicitly calls the no parameter constructor in the superclass. This action taken by a default constructor ensures that the inherited state of the object is initialized properly. In addition, it initializes all the instance variables in the object to the default value depending on their data type.</p>
<p>The default constructor of a class has the same access modifier with which the class has been declared. For example, the default constructor of a public class is implicitly given the public access. The default constructor of a protected class is implicitly given the protected access. The default constructor of a private class is implicitly given the private access. Otherwise, the default constructor has the default access implied by no access modifier.</p>
<p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.scjp-certification.com%2Fconstructors.html&amp;title=Constructors"><img src="http://www.scjp-certification.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a> </p>]]></content:encoded>
			<wfw:commentRss>http://www.scjp-certification.com/constructors.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>What will be the result while compiling and running the code?</title>
		<link>http://www.scjp-certification.com/what-will-be-the-result-while-compiing-and-running-the-code.html</link>
		<comments>http://www.scjp-certification.com/what-will-be-the-result-while-compiing-and-running-the-code.html#comments</comments>
		<pubDate>Mon, 16 Nov 2009 11:56:26 +0000</pubDate>
		<dc:creator>Daisy Williams</dc:creator>
				<category><![CDATA[Java Questions]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[compile]]></category>
		<category><![CDATA[EnumSet]]></category>
		<category><![CDATA[exam guide]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[set]]></category>
		<category><![CDATA[study guide]]></category>

		<guid isPermaLink="false">http://www.scjp-certification.com/?p=411</guid>
		<description><![CDATA[import java.util.EnumSet; public final class EnumMeg { public static void main(String[] args) { Integer i = null; method(i); } static...]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.scjp-certification.com%2Fwhat-will-be-the-result-while-compiing-and-running-the-code.html"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.scjp-certification.com%2Fwhat-will-be-the-result-while-compiing-and-running-the-code.html&amp;style=normal&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>import java.util.<strong><a href="http://www.scjp-certification.com/what-is-the-java-util-enumset-set.html">EnumSet</a></strong>;<br />
public final class EnumMeg<br />
                     {<br />
      public static void main(String[] args)<br />
      {<br />
           Integer i = null;<br />
           method(i);<br />
     }<br />
     static void method(int k){<br />
          System.out.println(k);<br />
     }<br />
}</p>
<p>It will compile but will throw a NullPointerException at runtime.   </p>
<p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.scjp-certification.com%2Fwhat-will-be-the-result-while-compiing-and-running-the-code.html&amp;title=What%20will%20be%20the%20result%20while%20compiling%20and%20running%20the%20code%3F"><img src="http://www.scjp-certification.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a> </p>]]></content:encoded>
			<wfw:commentRss>http://www.scjp-certification.com/what-will-be-the-result-while-compiing-and-running-the-code.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>What will be the output of the following program?</title>
		<link>http://www.scjp-certification.com/what-will-be-the-output-of-the-following-program.html</link>
		<comments>http://www.scjp-certification.com/what-will-be-the-output-of-the-following-program.html#comments</comments>
		<pubDate>Thu, 12 Nov 2009 11:53:23 +0000</pubDate>
		<dc:creator>Daisy Williams</dc:creator>
				<category><![CDATA[Java Questions]]></category>
		<category><![CDATA[exam guide]]></category>
		<category><![CDATA[exam questions]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[main]]></category>
		<category><![CDATA[operator]]></category>
		<category><![CDATA[question]]></category>

		<guid isPermaLink="false">http://www.scjp-certification.com/?p=402</guid>
		<description><![CDATA[class Ques{ public static void main (String[] argv){ int p1 = 0102; int p2 = -10; int mod = p1...]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.scjp-certification.com%2Fwhat-will-be-the-output-of-the-following-program.html"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.scjp-certification.com%2Fwhat-will-be-the-output-of-the-following-program.html&amp;style=normal&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p><strong>class Ques{<br />
   public static void main (String[] argv){<br />
       int p1 = 0102;<br />
       int p2 = -10;<br />
       int mod = p1 % p2;<br />
       System.out.println(&#8220;mod = &#8221; +mod);<br />
   }<br />
}</strong>  </p>
<p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.scjp-certification.com%2Fwhat-will-be-the-output-of-the-following-program.html&amp;title=What%20will%20be%20the%20output%20of%20the%20following%20program%3F"><img src="http://www.scjp-certification.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a> </p>]]></content:encoded>
			<wfw:commentRss>http://www.scjp-certification.com/what-will-be-the-output-of-the-following-program.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

