args[]
is an argument to a function (which is main
) and access modifiers are not applicable for arguments.
The arguments are always local to the functions for which they are being passed (That means their scope is, body of the function).
Access modifiers are applicable to all class members, including nested classes, enums, and interfaces.
public static void main(String [] args) ...
where public
is the modifier for the method main