aspose file tools
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes Overridding Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Reply Bookmark "Overridding" Watch "Overridding" New topic
Author

Overridding

Abhi vijay
Ranch Hand

Joined: Sep 16, 2008
Posts: 509



Isnt this legal Overridding?? Then how can I override non-static method with a static???
Vijay Raj
Ranch Hand

Joined: Oct 10, 2005
Posts: 110
This isn't over-riding at all. A static method is a class method, it belongs to the class. A non-static method in a sub-class with the same name as a static method of the super class is actually a brand new method and has no relation to the super class' method.

Vijay.
Kiran Shigli
Greenhorn

Joined: Oct 04, 2008
Posts: 7
No! The non-static go method is just a new method in the subclass. Thanks.
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Overridding
 
Similar Threads
hi waht is diffrence b/w this abstract method and overridding
Query on the topic overloading
Overriden exception
Differance in overriding variable and method
threads&inner classes