0
default access specifier
static void sayHello() { System.out.println("Hello World!"); } in the above there is no access specifier mentioned. when running Java take it as public or something else
1 Antwort
+ 1
default similar to public
static void sayHello() { System.out.println("Hello World!"); } in the above there is no access specifier mentioned. when running Java take it as public or something else