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


Please Help Members By Posting Answers For Below Questions

What is the relationship between local interfaces and container-managed relationships?

598


Why are component architectures useful?

577


What value does readline() return when it has reached the end of a file?

598


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

576


What is the purpose of the wait(), notify(), and notifyall() methods?

572






Explain about RMI Architecture?

617


What is ioc concept & explain it?

625


cud u help me ... i am struggling with this question... to find all the subsets of a given set for ex.... a,,b,c shud give all the subsets.... i gt the program in c bt nt able to get it in java..... help needed ..

1743


What are the different algorithms used for clustering?

555


what is handle?

1859


Why won’t the jvm terminate when I close all the application windows?

760


Is infobus easy to use?

604


What event results from the clicking of a button?

702


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

602


What is in-memory replication?

562