Search

When will we define a method as static ?



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.