default access specifier | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
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

10th Jul 2017, 12:45 PM
Shaistha Shabnam
1 Resposta
+ 1
default similar to public
10th Jul 2017, 1:04 PM
ŠœŠ³. ŠšŠ½Š°ŠæšŸŒ 
ŠœŠ³. ŠšŠ½Š°ŠæšŸŒ  - avatar