DEVFYI - Developer Resource - FYI

What access level do you need to specify in the class declaration to ensure that only classes from the same directory can access it?

Java Interview Questions and Answers (part 3)


(Continued from previous question...)

460. What access level do you need to specify in the class declaration to ensure that only classes from the same directory can access it?

You do not need to specify any access level, and Java will use a default package access level.

(Continued on next question...)

Other Interview Questions