23. What is the result of compiling the following code? When you run like given below?
java Test Hello How Are You
public class Test {
public static void main ( String[] args) {
for ( int i = 0; i < args.length; i++)
System.out.print(args[i]);
}
}
[a] Compile and runs with no output
[b] Compiles and runs printing out HelloHowAreYou
[c] Does not compile
[d] Compiles but generates run time error
Answer
[b] Compiles and runs printing out HelloHowAreYou |