Hi All,
Please see code below:
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
The correct answer is C, however I think there are 2 bugs in the program.
First I would expect the classname to be the last parameter which will cause the program to actually run..here the
class is x and none of the answers have x as last argument.
Secondly, for output to be "found"
the parameter x needs to be same as the arg[1] supplied, in this case i think option A is right, but not completely correct
due to my first reason above.
Please if someone has the command prompt working can they please check this out by executing it from command line,
i would really appreciate it! mine is completely bananas so I can't. many thanks, waiting for some replies.