When will you define a method as static? Ans. 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.
Download the Study24x7 App, so you can connect and collaborate.