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


Please Help Members By Posting Answers For Below Questions

If I wanted to use a solarisui for just a jtabbedpane, and the metal ui for everything else, how would I do that?

563


What are local interfaces? Describe.

697


What are the different types of exception?

570


What is message driven beam?

581


What are callback interfaces?

591






What are externizable interface?

578


What is a modular application? What does module-relative mean?

538


Explain phantom read?

1735


What class is used to create Server side object ?

1666


What is the difference between system.out ,system.err and system.in?

594


Difference between swing and awt?

596


Define prototype?

581


What is the difference between the string and stringbuffer classes?

541


What are the oops concept?

575


what is Activation Instantinator?

1903