Sign up to request clarification or add additional context in comments.
Comments
1
It will be empty.
public class ABC {
public static void main(String[] sam) {
if (sam == null) {
System.out.println("sam is null");
}
if (sam.length == 0) {
System.out.println("sam is empty");
}
}
}
Never null. Empty array designates no parameters. In general, it is good to preserve the semantics that "the number of elements in the array is the number of arguments".