A static method, as Irene said belongs to the class not a given instance of the class. This means that that you do not need an instance of the class to call the static method, as in String.valueOf(...). You can simply call the method using the class name
String and the the method name valueOf . The return value of this method does not rely on an instance of the class String but on the input given to the method.