0
local classes - Java
Is it possible to create local static classes in Java? I mean classes inside methods with the static annotation. It would be awesome if you could explain to me why it is possible or why not.
1 Respuesta
+ 2
No. Because it's declared inside a method then it's scope is limited to method only... So it don't have any access modifiers of public, private, protected, and also static.