<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="zh-TW">
		<id>https://fgchen.com/wiki/index.php?action=history&amp;feed=atom&amp;title=SCJP_1.6%E7%89%88%E8%80%83%E9%A1%8C_117</id>
		<title>SCJP 1.6版考題 117 - 修訂歷史</title>
		<link rel="self" type="application/atom+xml" href="https://fgchen.com/wiki/index.php?action=history&amp;feed=atom&amp;title=SCJP_1.6%E7%89%88%E8%80%83%E9%A1%8C_117"/>
		<link rel="alternate" type="text/html" href="https://fgchen.com/wiki/index.php?title=SCJP_1.6%E7%89%88%E8%80%83%E9%A1%8C_117&amp;action=history"/>
		<updated>2026-04-24T08:22:07Z</updated>
		<subtitle>本 Wiki 上此頁面的修訂歷史</subtitle>
		<generator>MediaWiki 1.29.0</generator>

	<entry>
		<id>https://fgchen.com/wiki/index.php?title=SCJP_1.6%E7%89%88%E8%80%83%E9%A1%8C_117&amp;diff=1303&amp;oldid=prev</id>
		<title>Ikk：新頁面:  Given:  11. class Converter{  12.   public static void main(String[] args){  13.   Integer i = args[0];  14.   int j = 12;  15.   System.out.println(&quot;It is &quot; + (j==i) + &quot; that j==i.&quot;)...</title>
		<link rel="alternate" type="text/html" href="https://fgchen.com/wiki/index.php?title=SCJP_1.6%E7%89%88%E8%80%83%E9%A1%8C_117&amp;diff=1303&amp;oldid=prev"/>
				<updated>2013-03-30T04:16:45Z</updated>
		
		<summary type="html">&lt;p&gt;新頁面:  Given:  11. class Converter{  12.   public static void main(String[] args){  13.   Integer i = args[0];  14.   int j = 12;  15.   System.out.println(&amp;quot;It is &amp;quot; + (j==i) + &amp;quot; that j==i.&amp;quot;)...&lt;/p&gt;
&lt;p&gt;&lt;b&gt;新頁面&lt;/b&gt;&lt;/p&gt;&lt;div&gt; Given:&lt;br /&gt;
 11. class Converter{&lt;br /&gt;
 12.   public static void main(String[] args){&lt;br /&gt;
 13.   Integer i = args[0];&lt;br /&gt;
 14.   int j = 12;&lt;br /&gt;
 15.   System.out.println(&amp;quot;It is &amp;quot; + (j==i) + &amp;quot; that j==i.&amp;quot;);&lt;br /&gt;
 16.   }&lt;br /&gt;
 17. }&lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
 What is the result when the programmer attempts to compile the code and run it with the command java Converter 12?&lt;br /&gt;
  A. It is true that j==i.&lt;br /&gt;
  B. It is false that j==i.&lt;br /&gt;
  C. An exception is thrown at runtime.&lt;br /&gt;
  D. Compilation fails because of an error in line 13.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;toccolours mw-collapsible mw-collapsed&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;span style=&amp;quot;font-size:medium;&amp;quot;&amp;gt;解答&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&amp;lt;div class=&amp;quot;mw-collapsible-content&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;span style=&amp;quot;font-size: medium;&amp;quot;&amp;gt;Ans: D   &amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;font-size:medium;&amp;quot;&amp;gt; 解說:&lt;br /&gt;
 args的每一個元素皆是字串，無法指定給Integer型態(型態不符)&lt;br /&gt;
 改為：Integer i = Integer.parseInt(args[0]);&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/span&amp;gt;	&lt;br /&gt;
&amp;lt;/div&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
{{SCJP 1.6版考題講解}}&lt;/div&gt;</summary>
		<author><name>Ikk</name></author>	</entry>

	</feed>