Examveda
Examveda

Which access modifier allows a class member to be accessed only within its own class and package?

A. public

B. protected

C. private

D. package-private

Answer: Option D


This Question Belongs to Java Program >> Declaration And Access Control

Join The Discussion

Related Questions on Declaration and Access Control