Examveda
Examveda

In Java, what access modifier is used to specify that a class member can be accessed only within its class?

A. protected

B. private

C. public

D. package-private

Answer: Option B


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

Join The Discussion

Related Questions on Declaration and Access Control