This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes Static methods cannot be override ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Static methods cannot be override ?" Watch "Static methods cannot be override ?" New topic
Author

Static methods cannot be override ?

Anto Telvin
Ranch Hand

Joined: Aug 12, 2008
Posts: 113
hi all
It is saying that static methods cannot be override..but i have one doubt ...if i have the following program as my source file what is happening here?



[edit]Add code tags. CR[/edit]
[ August 26, 2008: Message edited by: Campbell Ritchie ]

Anto Telvin Mathew<br />Many of the life failures are people who did not realize how close they were to success when they give up. EDISON
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19651
    
  18

You are hiding the method. Check out Overriding Vs Hiding.


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
Anto Telvin
Ranch Hand

Joined: Aug 12, 2008
Posts: 113
thanks
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Static methods cannot be override ?
 
Similar Threads
overriding static methods
Java ambigious method calling doubt
referenc static variables with this in methods
About overriding
regarding overriding with var agrs