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
why static class in java
Do I need to import javlang package any time? Why ?
What is the difference between the font and fontmetrics classes?
Write a program to show synchronization?
Why is actionform a base class rather than an interface?
What are the different methods of identifying an object?
Which containers use a border layout as their default layout?
Explain how will the struts know which action class to call when you submit a form?
When a thread blocks on i/o, what state does it enter?
What is the difference between the session.get() method and the session.load() method?
What is a sessionfactory? Is it a thread-safe object?
What is difference between object state and behavior?
how to make a index.jsp for running the site in internet and find an error for connection with weblogic server and java that give an error invalid object name.and how to maintain session.
Is the ternary operator written x : y ? Z or x ? Y : z ?
Difference between loadclass and class.forname?