can a static method be overridden
Answer Posted / kiran kadarla
Static methods CANNOT be overridden as they belong to a
class and not an instance of the class.
Aswini De: First of all, you didnot override the cal method.
Karteek: In your example, the fact that
parent.mystaticMethod and child.mystaticmethod are printing
different answers is in itslef an indication that the method
is not overridden!!
-kk
Is This Answer Correct ? | 9 Yes | 9 No |
Post New Answer View All Answers
If I wanted to use a solarisui for just a jtabbedpane, and the metal ui for everything else, how would I do that?
What are local interfaces? Describe.
What are the different types of exception?
What is message driven beam?
What are callback interfaces?
What are externizable interface?
What is a modular application? What does module-relative mean?
Explain phantom read?
What class is used to create Server side object ?
What is the difference between system.out ,system.err and system.in?
Difference between swing and awt?
Define prototype?
What is the difference between the string and stringbuffer classes?
What are the oops concept?
what is Activation Instantinator?