can a static method be overridden
Answer Posted / naresh
static methods cant be overridden because let us consider
the following program
class Base
{
static void x(){}
}
class Derieved extends Base
{
@Override
static void x(){}
}
will produce compile-time error
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is local interface. How values will be passed?
Explain the advantages and disadvantages of detached objects.
Do I have to use jsps with my application?
What is a clone?
what are the activation groupworks?
Explain ioc concept?
what is meant by JRMP?
Difference between new operator and class.forname().newinstance()?
What are the different class loaders used by jvm?
Can I run seam outside of jboss as?
Is there a guarantee of uniqueness for entity beans?
Why won’t the jvm terminate when I close all the application windows?
Why is string immutable in java?
what are getters and setters in Java with examples?
Why are some of the class and element names counter-intuitive?