|
Which statements are true about the use of modifiers?
Select the two correct answers.
If no accessibility modifier (public, protected, and private) is specified for a member declaration, the member is only accessible for classes in the package of its class and subclasses of its class anywhere. You cannot specify accessibility of local variables. They are only accessible within the block in which they are declared. Subclasses of a class must reside in the same package as the class they extend. Local variables can be declared static. Objects themselves do not have any accessibility modifiers, only the object references do.
|