Examveda
Examveda

Which of the following access modifiers restricts a method or variable's access to the same package only?

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