Public vs. private access:
Public: A Java keyword used in a method or variable declaration. It signifies that the method or variable can be accessed by elements residing in other classes.
Private: A Java keyword used in a method or variable declaration. It signifies that the method or variable can only be accessed by other elements of its class.