File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 Spring in Action this week in the Spring 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: 19719
    
  20

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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Static methods cannot be override ?