posted 21 years ago
What is the result?
A. baz has the value of ��
B. baz has the value of null
C. baz has the value of �red�
D. baz has the value of �blue�
E. bax has the value of �green�
F. the code does not compile
G. the program throws an exception
I konw the arguments index starts with 0.In this case must report error.I think the correct answers is G that throws an exception.But the right is F because the declaration of variable retrieving the command line args also shoud begin with 0,i.e.String foo=args[0],otherwise compliation to fail.
who can give me a exact answers?
Thank u for ur helps.
[ February 19, 2003: Message edited by: frank yang ]
Look at me and hear me<br />Because I am here<br />Just for that