Which of the following statements about the usage of modifiers is true?
A. If no accessibility modifier (public, protected, or private) is supplied for a member declaration, the member is only accessible to classes in the package of its class and subclasses of its class anywhere.
B. You cannot specify the accessibility of local variables. They are only accessible within the block in which they are declared.
C. Subclasses of a class must be in the same package as the class they extend.
D. Local variables can be declared static.
Answer:B
Which of the following statements about the usage of modifiers is true?
A. If no accessibility modifier (public, protected, or private) is supplied for a member declaration, the member is only accessible to classes in the package of its class and subclasses of its class anywhere. B. You cannot specify the accessibility of local variables. They are only accessible within the block in which they are declared. C. Subclasses of a class must be in the same package as the class they extend. D. Local variables can be declared static.
Explanation: Local variable accessibility cannot be specified. They can only be accessed.