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


Win a copy of Building Microservices this week in the Design forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "static methods cannot be overridden ?" Watch "static methods cannot be overridden ?" New topic
Author

static methods cannot be overridden ?

Tom McCann
Ranch Hand

Joined: Aug 27, 2005
Posts: 31
I am very confused (so what's new ?). In the SCJP Exam guide it says that static methods cannot be overridden. Yet I have just compiled and run the following test program with the expected results. Am I missing something in my understanding of the statement that "static methods cannot be overridden" ?



produces the output:

I am eating
I am eating hay
Ernest Friedman-Hill
author and iconoclast
Marshal

Joined: Jul 08, 2003
Posts: 24190
    
  34

There's a nice page about this in the JavaRanch FAQ.


[Jess in Action][AskingGoodQuestions]
Tom McCann
Ranch Hand

Joined: Aug 27, 2005
Posts: 31
Many Thanks.
 
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: static methods cannot be overridden ?
 
It's not a secret anymore!