I know this would be too basic question but still I requset you guys to answer. As we all know that we can call a static method with object. I am not sure why someone would like to do this. Can someone please explain me a situation where this would be needed?
If this is not needed then why java dont give an error instead of warning for calling a static method using object.