<?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_164</id>
		<title>SCJP 1.6版考題 164 - 修訂歷史</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_164"/>
		<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_164&amp;action=history"/>
		<updated>2026-05-07T04:14:13Z</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_164&amp;diff=1253&amp;oldid=prev</id>
		<title>Ikk：新頁面:  Given:  1. d is a valid, non-null Date object  2. df is a valid, non-null DateFormat object set to the current locale    What outputs the current locale&#039;s country name and the appropr...</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_164&amp;diff=1253&amp;oldid=prev"/>
				<updated>2013-03-30T02:28:30Z</updated>
		
		<summary type="html">&lt;p&gt;新頁面:  Given:  1. d is a valid, non-null Date object  2. df is a valid, non-null DateFormat object set to the current locale    What outputs the current locale&amp;#039;s country name and the appropr...&lt;/p&gt;
&lt;p&gt;&lt;b&gt;新頁面&lt;/b&gt;&lt;/p&gt;&lt;div&gt; Given:&lt;br /&gt;
 1. d is a valid, non-null Date object&lt;br /&gt;
 2. df is a valid, non-null DateFormat object set to the current locale&lt;br /&gt;
 &lt;br /&gt;
 What outputs the current locale&amp;#039;s country name and the appropriate version of d&amp;#039;s date?&lt;br /&gt;
  A. Locale loc = Locale.getLocale();&lt;br /&gt;
     System.out.println(loc.getDisplayCountry()&lt;br /&gt;
     + &amp;quot; &amp;quot; + df.format(d));&lt;br /&gt;
  B. Locale loc = Locale.getDefault();&lt;br /&gt;
     System.out.println(loc.getDisplayCountry()&lt;br /&gt;
     + &amp;quot; &amp;quot; + df.format(d));&lt;br /&gt;
  C. Locale loc = Locale.getLocale();&lt;br /&gt;
     System.out.println(loc.getDisplayCountry()&lt;br /&gt;
     + &amp;quot; &amp;quot; + df.setDateFormat(d));&lt;br /&gt;
  D. Locale loc = Locale.getDefault();&lt;br /&gt;
     System.out.println(loc.getDisplayCountry()&lt;br /&gt;
     + &amp;quot; &amp;quot; + df.setDateFormat(d));&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: E   &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;
 Locale是本地化(/國際化)程式撰寫工具方法，locale 是指一個有共同語言和習慣的地理或政治區域。&lt;br /&gt;
 在 Java 編程語言中，locale 由 Locale 對像來代表。對 locale 敏感的操作（例如排序原則和日期格式化）將根據 Locale 而變化。&lt;br /&gt;
  請參考：&lt;br /&gt;
    http://my.freebsd.org.hk/html/jdk1.2/guide/internat/intl.doc.html&lt;br /&gt;
    http://my.freebsd.org.hk/html/jdk1.2/guide/internat/index.html&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>