Why can't we Use super in a static method. as super refers to the super class object then why can't we use super inside a static method. Please Explain.
Soumya Ranjan Mohanty wrote:Why can't we Use super in a static method. as super refers to the super class object then why can't we use super inside a static method. Please Explain.
Static methods can access only Static fields/methods. And in a static context- there is no instance associated.