The keyword private indicates that the constructor can only be called by an object only when it is in the same class. This means that you could NOT call the constructor from other packages or other classes.
Everything You Have To Know About Java
© 2024 Learn Java Coding