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 non-repeatable read?
Explain how will the struts know which action class to call when you submit a form?
What is chat area? Explain.
What are transaction attributes?
To identify IDL language what mapping mechanism is used?
What is colon_pkg_prefixes and what is its use?
Why use a datasource when you can directly specify a connection details?
What are the pros and cons of detached objects?
Can I map more than one table in a cmp?
What are JTA/JTS and how they used by client?
Where we can write Rmi registry in the code, without having to write it at the command prompt?
Difference between DurableSubscription and non- DurableSubscription?
Is the session factory thread safe?
How will you pass parameters in RMI? Why do you serialize?
What is RMI and what are the services in RMI?