Java - Command Line Arguments
Identify the error in the following code snippet:
public class Sample {
public static void main(String args) {
System.out.println(args[0]);
}
}
15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions