Collections and Generics
© examsiri.com
Question : 40 of 53
Marks:
+1,
-0
Given:
and the command line:
java Counter one fred 42
Which code, inserted at line 3, captures the number of arguments passed into the program?
1. public class Counter {
2.   public static void main(String[] args) {
3.    int numArgs = /* insert code here */;
4.   }
5. }and the command line:
java Counter one fred 42
Which code, inserted at line 3, captures the number of arguments passed into the program?
Go to Question: