<?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_060</id>
		<title>SCJP 1.6版考題 060 - 修訂歷史</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_060"/>
		<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_060&amp;action=history"/>
		<updated>2026-04-27T08:08:36Z</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_060&amp;diff=1365&amp;oldid=prev</id>
		<title>Ikk：新頁面:  1. package com.company.application;  2.  3. public class MainClass{  4.   public static void main(String[] args){}  5. }       And MainClass exists in the /apps/com/company/applicatio...</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_060&amp;diff=1365&amp;oldid=prev"/>
				<updated>2013-03-30T07:02:57Z</updated>
		
		<summary type="html">&lt;p&gt;新頁面:  1. package com.company.application;  2.  3. public class MainClass{  4.   public static void main(String[] args){}  5. }       And MainClass exists in the /apps/com/company/applicatio...&lt;/p&gt;
&lt;p&gt;&lt;b&gt;新頁面&lt;/b&gt;&lt;/p&gt;&lt;div&gt; 1. package com.company.application;&lt;br /&gt;
 2.&lt;br /&gt;
 3. public class MainClass{&lt;br /&gt;
 4.   public static void main(String[] args){}&lt;br /&gt;
 5. }&lt;br /&gt;
  &lt;br /&gt;
 &lt;br /&gt;
 And MainClass exists in the /apps/com/company/application directory.&lt;br /&gt;
 Assume the CLASSPATH environment variable is set to &amp;quot;.&amp;quot; (current directory).&lt;br /&gt;
 Which two java commands entered at the command line will run MainClass? (Choose two.)&lt;br /&gt;
  &lt;br /&gt;
    A. java MainClass if run from the /apps directory&lt;br /&gt;
    B. java com.company.application.MainClass if run from the /apps directory&lt;br /&gt;
    C. java -classpath /apps com.company.application.MainClass if run from any directory&lt;br /&gt;
    D. java-classpath . MainClass if run from the /apps/com/company/application directory&lt;br /&gt;
    E. java -classpath /apps/com/company/application:. MainClass if run from the /apps directory&lt;br /&gt;
    F. java com.company.application.MainClass if run from the /apps/com/company/application directory&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 C   &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;
 MainClass 位於 in the /apps/com/company/application，CLASSPATH設為”.”(即目前的目錄)，要能執行MainClass要如何下指令？&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>