<?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_081</id>
		<title>SCJP 1.6版考題 081 - 修訂歷史</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_081"/>
		<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_081&amp;action=history"/>
		<updated>2026-05-23T15:50:04Z</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_081&amp;diff=1339&amp;oldid=prev</id>
		<title>Ikk：新頁面:  1. interface DoStuff2{  2.   float getRange(int low, int high);}  3.  4. interface DoMore {  5.   float getAvg(int a, int b, int c);}  6.  7. abstract class DoAbstract implements DoSt...</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_081&amp;diff=1339&amp;oldid=prev"/>
				<updated>2013-03-30T06:10:42Z</updated>
		
		<summary type="html">&lt;p&gt;新頁面:  1. interface DoStuff2{  2.   float getRange(int low, int high);}  3.  4. interface DoMore {  5.   float getAvg(int a, int b, int c);}  6.  7. abstract class DoAbstract implements DoSt...&lt;/p&gt;
&lt;p&gt;&lt;b&gt;新頁面&lt;/b&gt;&lt;/p&gt;&lt;div&gt; 1. interface DoStuff2{&lt;br /&gt;
 2.   float getRange(int low, int high);}&lt;br /&gt;
 3.&lt;br /&gt;
 4. interface DoMore {&lt;br /&gt;
 5.   float getAvg(int a, int b, int c);}&lt;br /&gt;
 6.&lt;br /&gt;
 7. abstract class DoAbstract implements DoStuff2, DoMore{}&lt;br /&gt;
 8.&lt;br /&gt;
 9. class DoStuff implements DoStuff2{&lt;br /&gt;
 10.   public float getRange(int x, int y){return 3.14f;}}&lt;br /&gt;
 11.&lt;br /&gt;
 12. interface DoAll extends DoMore{&lt;br /&gt;
 13.   float getAvg(int a, int b, int c, int d);}&lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
 What is the result?&lt;br /&gt;
   A. The file will compile without error.&lt;br /&gt;
   B. Compilation fails. Only line 7 contains an error.&lt;br /&gt;
   C. Compilation fails. Only line 12 contains an error.&lt;br /&gt;
   D. Compilation fails. Only line 13 contains an error.&lt;br /&gt;
   E. Compilation fails. Only lines 7 and 12 contain errors.&lt;br /&gt;
   F. Compilation fails. Only lines 7 and 13 contain errors.&lt;br /&gt;
   G. Compilation fails. Lines 7, 12, and 13 contain errors.&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: A   &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;
 此題可正確地編譯&lt;br /&gt;
 說明：類別實作介面會繼承介面的抽象方法1．類別中有抽象的方法，該類別必須為抽象&lt;br /&gt;
 2．類別若不為抽象，則必須對繼承的抽象方法提供實作&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>