<?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_151</id>
		<title>SCJP 1.6版考題 151 - 修訂歷史</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_151"/>
		<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_151&amp;action=history"/>
		<updated>2026-05-07T12:43:32Z</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_151&amp;diff=1268&amp;oldid=prev</id>
		<title>Ikk：新頁面:  Given that the current directory is empty,   and that the user has read and write privileges to the current directory, and the following:  1. import java.io.*;  2. public class Maker{...</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_151&amp;diff=1268&amp;oldid=prev"/>
				<updated>2013-03-30T02:57:05Z</updated>
		
		<summary type="html">&lt;p&gt;新頁面:  Given that the current directory is empty,   and that the user has read and write privileges to the current directory, and the following:  1. import java.io.*;  2. public class Maker{...&lt;/p&gt;
&lt;p&gt;&lt;b&gt;新頁面&lt;/b&gt;&lt;/p&gt;&lt;div&gt; Given that the current directory is empty, &lt;br /&gt;
 and that the user has read and write privileges to the current directory, and the following:&lt;br /&gt;
 1. import java.io.*;&lt;br /&gt;
 2. public class Maker{&lt;br /&gt;
 3.   public static void main(String args){&lt;br /&gt;
 4.     File dir = new File(&amp;quot;dir&amp;quot;);&lt;br /&gt;
 5.     File f = new File(dir, &amp;quot;f&amp;quot;);&lt;br /&gt;
 6.   }&lt;br /&gt;
 7. }&lt;br /&gt;
 &lt;br /&gt;
 Which statement is true?&lt;br /&gt;
  A. Compilation fails.&lt;br /&gt;
  B. Nothing is added to the file system.&lt;br /&gt;
  C. Only a new file is created on the file system.&lt;br /&gt;
  D. Only a new directory is created on the file system.&lt;br /&gt;
  E. Both a new file and a new directory are created on the file system.&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: B   &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;
 4/5行只是宣告目錄、檔案&lt;br /&gt;
 真正建立檔案的方法是createNewFile()，例子如145&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>