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 a session? Can you share a session object between different theads?
Name the class that is used to bind the server object with RMI Registry?
Can you give me a simple example of using the requiredif validator rule?
How would you create a button with rounded edges?
What are the pros and cons of detached objects?
Where can I find seam examples and documentation?
What are the difference between RMI and CORBA?
Are we allowed to change the transaction isolation property in middle of a transaction?
What are the steps to write p-to-p model application?
Is the infobus client side only?
Difference between loadclass and class.forname?
What is a policy?
How primary key is implemented in Oracle?
Define aop(assepct oriented programing)?
How database connectivity in XML is achieved?