sachin santaji wrote:Is possible to override the static method?
No, for all the reasons already mentioned.
Do you know the internally how it works??
No, and in general, neither the language nor the JVM specification are explicit about these sorts of things - for good reason.
What they do provide you with are
rules; and those are what
you should concentrate on.
However, unless you actually need this information for something (eg, the
SCJP exam), the best advice I know of is to avoid the situation happening at all:
1. Don't define
static methods unless you know they're needed (it's a common beginner's mistake to make everything
static).
2. Don't define
static methods with the same signature for more than one class in the same hierarchy.
HIH
Winston