can a static method be overridden
Answer Posted / abid mehmood
An instance method can not override the static method of
its parent class.like
if parenet class contains
public static void test()
{
}
then in child class you can't override like this
public void test(){ //you can't override
}
or even like this
public static int test(){ //compile time error:type is
incompatibe with parent's test method.
}
| Is This Answer Correct ? | 4 Yes | 9 No |
Post New Answer View All Answers
What is threadfactory?
What is the difference between RMI and Corba?
what is the use of State Factories?
What is the relationship between an event-listener interface and an event-adapter class?
Can I import same package/class twice? Will the jvm load the package twice at runtime?
What class is used to create Server side object ?
What is the relation between the infobus and rmi?
Is the ternary operator written x : y ? Z or x ? Y : z ?
Can I map more than one table in a cmp?
What class is the top of the awt event hierarchy?
What is difference between object state and behavior?
what is an isolation level?
What is glasgow?
What are callback interfaces?
Can you control when passivation occurs?