By default what is the access specifier for static methods or variables in Java
-
Forget Code
-
Java
-
By default what is the access specifier for static methods or variables
By default,
access specifier for static method is "default".
The proof for the above statement can be seen in
main method as we specify "public" keyword in it..
i.e public static void main(String ...arg)
Therefore, the default access specifier for the static method is not public.
Tags for By default what is the access specifier for static methods or variables in Java