I can't understand this question.
I chose option B, because I understand such as "is not visible" belong to private fields and package private methods. Then I saw correct answer I thought that I understand wrong, "is not visible" belong to public class, not private fields and package private methods. The correct answer is D, but I can't understand it. I read that we can use access modifiers for all methods and instance variables. Maybe my english is not enough for understanding option D. Please explain it. Thanks in advance
I chose option B, because I understand such as "is not visible" belong to private fields and package private methods. Then I saw correct answer I thought that I understand wrong, "is not visible" belong to public class, not private fields and package private methods. The correct answer is D, but I can't understand it. I read that we can use access modifiers for all methods and instance variables. Maybe my english is not enough for understanding option D. Please explain it. Thanks in advance