Sun Certified Programmer for the Java 2 Platform, Standard Edition 6 question
<p>Hey guys,  I am studying for my first Java Cert! Hurah!  Sorry, don't mean to sound so cheezy, but I can't help it :)  Anywho, trying to understand the below question and answer.  I don't get it. . . I don't really use the command line that much (mainly NetBeans and I am getting acquainted with Eclipse).  Any pointers are greatly appreciated.</p>

<hr>

<p>OBJECTIVE: 7.2: Given an example of a class and a command-line, determine the expected runtime behavior.
10) </p>

<blockquote>
  <p>Given:</p>

<pre><code>1. class x {
2.   public static void main(String [] args) {
3.     String p = System.getProperty("x");
4.     if(p.equals(args[1]))
5.       System.out.println("found");
6.   }
7. }
</code></pre>
  
  <p>Which command-line invocation will produce the output found?</p>

<pre><code>a) java -Dx=y x y z
b) java -Px=y x y z
c) java -Dx=y x x y z (*)
d) java -Px=y x x y z
e) java x x y z -Dx=y
f) java x x y z -Px=y
</code></pre>
</blockquote>

<p>//So the answer is C</p>

<p>REFERENCE:<br>
API for java command<br>
Option C is correct. -D sets a property and args[1] is the second argument (whose value is y)</p>

<hr>

<p>Uhm. . . so how come args[1] is the second argument? i thought "p" would be equal to the String {y x x y z}?</p>
