Introduction
The public access modifier allows other parts of your program to use a class, method, or variable freely. It makes things open and easy to reach.
When you want a class to be used by any other class in your program.
When you want a method to be called from anywhere in your code.
When you want a variable to be accessible from any other class.
When creating a main method that the Java runtime needs to access.
When sharing utility methods that many parts of your program need.
