Switch to full style
Java2 codes,problems ,discussions and solutions are here
Post a reply

Can we override static methods in java

Wed Oct 22, 2008 4:49 pm

Can anybody let me know the answer for following question.
CAn we override static methods?
If not why?



Re: Can we override static methods in java

Wed Oct 22, 2008 4:52 pm

Static methods cant be overriden they can only be hidden becz, static
methods are are associated with the class not with the objects. Static
methods are implicitly "final", because overriding is only done based on the
type of the objects.

Post a reply
  Related Posts  to : Can we override static methods in java
 Static Methods and Variables     -  
 main method and two static methods and loop until input zero     -  
 difference between a static and a non-static inner class     -  
 Static Import     -  
 What is a static method     -  
 static vs fixed div position     -  
 Class static properties     -  
 static variable defined in function     -  
 Calling a local variable from a static function     -  
 Which methods is best for SEO?     -  

Topic Tags

Java OOP