The Public access modifier is the modifier which is usually not the same as general modifier in Java. The public class can be accessible inside an application or namespace. While the Global class can be mainly noticed wherever: in any of the application or the namespace. The Webservice must be proclaimed as the Global so that it can have the access outside of the application. The global variable is like the open modifier in Java programming language.