Two Laptop Bag*
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 The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript 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: 3068
    
  33

Generally you will end up finding answers when you SearchFirst


Mohamed Sanaulla | My Blog
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: is static methods can't override?