aspose file tools*
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes Tricky question 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 » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "Tricky question" Watch "Tricky question" New topic
Author

Tricky question

Edwin Dalorzo
Ranch Hand

Joined: Dec 31, 2004
Posts: 961
I was reading the Java Language specification and I found this interesting code snippet about method overriding, hiding and overloading...

I did not read this in any book before:

What will be printed?



The output is:
Goodnight, Dick.

Does anyone knows why?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Tricky question