Static method in Java can be accessed using object instance [duplicate]

A benefit of this is that it allows you to take an instance method and turn it into a static method without having to modify any existing code (other than the class) and thus allowing for backwards compatibility. I’ve found this useful as many times I’ve come across utility methods that can be made static – I can just add the static modifier and continue on my way.

Leave a Comment