Given:
executed using this command:
java Myclass My Car is red
What is the output of this class?
A. Car–red–My
B. My–Car–is
C. My–is–java
D. java–Myclass–My
E. Myclass–Car–red
Given:
executed using this command:
java Myclass My Car is red
What is the output of this class?
A. Car–red–My
B. My–Car–is
C. My–is–java
D. java–Myclass–My
E. Myclass–Car–red
And command must be java Myclass.java My Car is red
the command:
java Myclass My Car is red
is ok if Myclass.java is compiled first
When changing arg in args, the answer is A