🎴 Flashcard Mode

Java Practice Test - 7

Card1 / 25
Mastered0
Review0
QuestionClick to flip

What is the most restrictive access modifier that will allow members of one class to have access to members of another class in the same package?

AnswerClick to flip back
A
synchronized
💡 Explanation:

default access is the package oriented access modifier.
Option 1 and 3 are wrong because public and protected are less restrictive. Option 2 and 4 are wrong because abstract and synchronized are not access modifiers.

Change Mode