Can any one can solve this question please...
What gets printed on the standard output when the class below is compiled and executed by entering "java
test lets see what happens". Select the one correct answer.
public class test {
public static void main(
String args[]) {
System.out.println(args[0]+" "+args[args.length-1]);
}
}
1.The program will throw an ArrayIndexOutOfBounds exception.
2.The program will print "java test"
3.The program will print "java happens";
4.The program will print "test happens"
5.The program will print "lets happens"
Thanks in advance........