Java - Command Line Arguments
Which of the following is the correct declaration of the
main method to receive command-line arguments in Java?main method to receive command-line arguments in Java?public static void main with a single parameter of type String[].static and has wrong parameter type.int which is invalid.public static void main(String[] args) [OK]15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions