Java - Packages and Access Control
What does the
private access modifier do in Java?private access modifier do in Java?privateprivate modifier restricts access to the member so that only code inside the same class can use it.public or protected allow wider access, but private is the most restrictive.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions