Package-Private Access
The default access that limits a type or member to its package.
What is Package-Private Access in Java?
Package-Private Access — The default access that limits a type or member to its package.
class Account {
private int balance = 20;
public int balance() {
return balance;
}
}
Level: Journeyman · More Java terms at this level
Updated