Examveda
Examveda

In Java, which access modifier allows a method or variable to be accessed within the same package only?

A. private

B. public

C. protected

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