Protected keyword in java August 20, 2021 by Codingtube team Protected keyword in java is an access modifiers in java .Protected keyword acts like private, with the exception that an inheriting class has access to protected members, but not private members. Example of Protected keyword