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
Explain phantom read?
Write a program to show synchronization?
Can I use multiple html form elements with the same name?
Can you control when passivation occurs?
What are JTA/JTS and how they used by client?
For which statements does it make sense to use a label?
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!
Where can I find seam examples and documentation?
what is a portable component?
Describe responsibilities of Activator?
Why are my checkboxes not being set from on to off?
What is a clone?
Is “abc” a primitive value?
What is the difference between the session.update() method and the session.lock() method?
How to determine SGA site?