单选题:About access control in Java, which statement below is correct?
About access control in Java, which statement below is correct? @[D](2)
A. A member without any access modifier is default to private
B. A member without any access modifier is default to public
C. A member without any access modifier is default to protected
D. Classes in the same package can access members without any access modifier.
A.A member without any access modifier is default to private
B.A member without any access modifier is default to public
C.A member without any access modifier is default to protected
D.Classes in the same package can access members without any access modifier.
答案:D
A. A member without any access modifier is default to private
B. A member without any access modifier is default to public
C. A member without any access modifier is default to protected
D. Classes in the same package can access members without any access modifier.
A.A member without any access modifier is default to private
B.A member without any access modifier is default to public
C.A member without any access modifier is default to protected
D.Classes in the same package can access members without any access modifier.
答案:D