File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "is static methods can Watch "is static methods can New topic

is static methods can't override?

kiran nyala
Ranch Hand

Joined: Sep 21, 2009
Posts: 50

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

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: 3152

Generally you will end up finding answers when you SearchFirst

Mohamed Sanaulla | My Blog
I agree. Here's the link:
subject: is static methods can't override?
It's not a secret anymore!