This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line!
See this thread for details.
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 OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA 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
 
 
subject: is static methods can't override?