When a method needs to be accessed even before the creation of the object of the class then we should declare the method as static.