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 chat area? Explain.
What is the relationship between an event-listener interface and an event-adapter class?
int x=5,i=1,y=0; while(i<=5) { y=x++ + ++x; i=i+2; } System.out.println(x); System.out.println(y); System.out.println(i); How to solve this? Please explain!
Explain the advantages and disadvantages of detached objects.
What restrictions are placed on the values of each case of a switch statement?
Do you think that java should have had pointers?
Are there books about seam?
What is a policy?
Why are my checkboxes not being set from on to off?
What is a session? Can you share a session object between different theads?
Is “abc” a primitive value?
what are memory considerations of jsp compares to other web components?
Difference between loadclass and class.forname?
What is difference between object state and behavior?
what are the activation groupworks?