can a static method be overridden
Answer Posted / partha
@ Mayank
Static methods are *NEVER* ever be overridden, even if you
try to override a static method of the super class in your
subclass, it will compile because in this you are simply
redeclaring the static method of your superclass in your
subclass. Redeclaring a method is not the same as overriding
a method.
The bottomline is
** STATIC METHODS CAN NEVER BE OVERRIDDEN **
| Is This Answer Correct ? | 8 Yes | 5 No |
Post New Answer View All Answers
Is infobus easy to use?
what are getters and setters in Java with examples?
What is the difference between the ‘font’ and ‘fontmetrics’ class?
What is meant by method chaining?
What if the static modifier is removed from the signature of the main method?
How are the elements of a cardlayout organized?
What is the diffrence between a local-tx-datasource and a xa-datasource?
What is TL and its use?
Why a component architecture for the java platform?
What are various types of class loaders used by jvm?
how to use debug in my elipse to solve problems that exist in my project
If I wanted to use a solarisui for just a jtabbedpane, and the metal ui for everything else, how would I do that?
Explain what is orm?
How primary key is implemented in Oracle?
If we opened Windows Internet Explorer 4 times, does it starts 4 processes or 4 threads?