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 does module-relative mean?
Whats new with the stop(), suspend() and resume() methods in jdk 1.2?
What’s jboss cache in short?
What is the difference between the session.update() method and the session.lock() method?
What is metaspace?
What must a class do to implement an interface?
To identify IDL language what mapping mechanism is used?
What is the difference between the session.get() method and the session.load() method?
Explain about RMI Architecture?
What are the services in RMI ?
Is the session factory thread safe?
how do you Handle Front End Application data against DB with example?
How is a java object message delivered to a non-java client?
Explain the difference between object state and behavior?
Name three component subclasses that support painting?