This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
Hi! Static methods are part of class not the object. Meaning that they can't be overridden, only redefined. Why then they obey the rule of overriding like method can't throw more or broader exceptions and can't return type other than in parent class (if arguments are the same). Or this question doesn't have answer other than "Sun decided to do so".
Thanks a lot!
Joined: Mar 07, 2008
well, it doesn't matter how it calls - hiding or redefining.. It's not overriding for sure.