Hello,
I was preparing for
SCJP exam and found this question in the mock
test and it is bit confusing for me.
Given:
and two separate command line invocations:
java Yippee
java Yippee 1 2 3 4
What is the result?
A. No output is produced.
1 2 3
B. No output is produced.
2 3 4
C. No output is produced.
1 2 3 4
D. An exception is thrown at runtime.
1 2 3
E. An exception is thrown at runtime.
2 3 4
F. An exception is thrown at runtime.
1 2 3 4
This produces output as :
Yippee
Yippee 1 2 3 4
But in the mock test the answer is given as:
No output is produced.
2 3 4
What is the right answer. Please help