New course! Every coder should learn Generative AI!
Try a free lesson0
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 Answer
+ 1
default similar to public