A global class is accessible across the Salesforce instance, irrespective of namespaces.
Whereas, public classes are accessible only in the corresponding namespaces.