Can access modifiers be used for local variables in Java?



Yes, a local variable can be public, private, protected or default.


Advertisements