What does the "static" keyword mean ? Can you override private or static method in Java ?
What does the "static" keyword mean ? Can you override private or static method in Java ?
Answer
The static keyword denotes that a member variable or method can be accessed, without requiring an instantiation of the class to which it belongs.
A user cannot override Static methods in Java,because method overriding is based upon dynamic binding at runtime and static methods are statically binded at compile time. A static method is not associated with any instance of a class so the concept is not applicable.
Disclimer: PCDS.CO.IN not responsible for any content, information, data or any feature of website.
If you are using this website then its your own responsibility to understand the content of the website