Public access refers to the visibility and accessibility of a class, method, or variable within a program. When something is declared as public, it can be accessed from anywhere in the program.
Static variables are variables that belong to the class itself rather than instances of the class. They are shared among all instances of the class and can be accessed without creating an object of that class.