aspose file tools*
The moose likes Beginning Java and the fly likes is static methods can't override? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "is static methods can Watch "is static methods can New topic
Author

is static methods can't override?

kiran nyala
Ranch Hand

Joined: Sep 21, 2009
Posts: 47

I tried following code to check overriding static methods and variables of super class


output:
sub class method1()
super class static method5()
super class x=10

So, finally i came to understand that static methods and variables can not be override, is my view correct?
If no please explin me
Seetharaman Venkatasamy
Ranch Hand

Joined: Jan 28, 2008
Posts: 5575

this topic many time discussed here in javaRanch. please search here....

recent thread
Mohamed Sanaulla
Saloon Keeper

Joined: Sep 08, 2007
Posts: 3071
    
  33

Generally you will end up finding answers when you SearchFirst


Mohamed Sanaulla | My Blog
 
Don't get me started about those stupid light bulbs.
 
subject: is static methods can't override?