Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

Is infobus easy to use?

1028


what are getters and setters in Java with examples?

1766


What is the difference between the ‘font’ and ‘fontmetrics’ class?

1144


What is meant by method chaining?

1133


What if the static modifier is removed from the signature of the main method?

1230


How are the elements of a cardlayout organized?

1074


What is the diffrence between a local-tx-datasource and a xa-datasource?

1033


What is TL and its use?

2454


Why a component architecture for the java platform?

1191


What are various types of class loaders used by jvm?

975


how to use debug in my elipse to solve problems that exist in my project

2269


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

1042


Explain what is orm?

1089


How primary key is implemented in Oracle?

2433


If we opened Windows Internet Explorer 4 times, does it starts 4 processes or 4 threads?

2200