139k views
3 votes
You want a class to have access to members ofanother class in the same package. Which is themost restrictive access that accomplishes thisobjective?

? public

? private

? protected

? transient

? default access

User FloppyDisk
by
5.2k points

1 Answer

6 votes

Answer:

default access

Step-by-step explanation:

Classes, methods, variables(identifiers*) declared without any access modifier are considered as default and these can be accesed in others clases of same package.

Identifiers are the name of classes, methods, variables, arrays, enums, etc.

User Davison
by
5.3k points