There was a study that incorporated this joke. It was actually rated as one of the funniest jokes in the world. I don't know if it's changed--I first heard about this study (and this joke) back in '02 or '03... I remember giggling about it in a Comp. Sci. classroom (Back when it was still C++, not Java...). But yeah. Good joke.