Given the class
// Filename: Main.java public class Main{ public static void main (String args []){ for (int i = 0; i< args.length; i++){ System.out.print (" "+args [i]); } } }
Now consider the following 3 options for running the program:
Which of the following statements are true?
Select 2 options
Correct Options are : D E
It will not throw NullPointerException because args [] is never null.
If no argument is given (as in option a) then the length of args is 0.