Which of the following is not a valid access modifier in Java?
Java MCQ: Which of the following is not a valid access modifier in Java? a) private b) protected c) public d) internal Answer: d) internal Explanation: In Java, the valid access modifiers are private, protected, and public. These modifiers control the visibility of classes, methods, and variables. private makes a member accessible only within the […]
Which of the following is not a valid access modifier in Java? Read More »