Examveda
Examveda

What is the default access modifier for a class in Java if no access modifier is specified?

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