aspose file tools
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes Tricky question Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Reply 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://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Tricky question
 
Similar Threads
Duplicate Method Names
Invocation of Hidden Class Methods
Static Method and Inheritence.
static methods Help plz..
static methods/casting question