File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
    Bookmark Topic Watch Topic
  • New Topic

Overriding static methods

 
vanishree malagi
Greenhorn
Posts: 5
  • 0
  • Mark post as helpful
  • send pies
  • Report post to moderator
Why can't static methods be overridden?
 
Ilja Preuss
author
Sheriff
Posts: 14112
  • 0
  • Mark post as helpful
  • send pies
  • Report post to moderator
Because classes are not objects. In more object oriented languages than Java, such as Smalltalk, they are, and therefore class level methods are polymorphic, too.

I don't know why the Sun developers decided to implement Java this way, though...
 
Jessica Sant
Sheriff
Posts: 4313
Android IntelliJ IDE Java
  • 0
  • Mark post as helpful
  • send pies
  • Report post to moderator
Please don't post the same question in multiple forums, its confusing and makes the conversation difficult to follow.

I think the Programmer's cert forum may be the best match so I'm leaving the thread there open. Please post your replies here.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
    Bookmark Topic Watch Topic
  • New Topic