Can access modifiers be used for local variables in Java?


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

Arushi
Arushi

e

Updated on: 30-Jul-2019

538 Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements