Multiple Choice Question

Quiz Guidelines

 

QID: 
435
Tags: 
Question: 

Select the correct order of restrictiveness for access modifiers... (First one should be least restrictive)

Select 1 option 

A. public < protected < package (i.e. no modifier) < private 
B. public < package (i.e. no modifier) < protected < private 
C. public < protected < private < package (i.e. no modifier) 
D. protected < package (i.e. no modifier) < private < public 
E. depends on the implementation of the class or method. 

Q&A Set: