I can confirm that this definitely does not apply solely to Java. In fact, JavaScript questions seem to completely fail to provide a single related question in the related tab almost 100% of the time. To give an example:
And if you're wondering what the question I was viewing was, the title is Answer does not get shown in a message box. Not one of the related questions has to do with message boxes, and the person writing the question almost certainly did not care about the color chucknorris
or about JS prototyping.
I was unable to find anything about vote weighting on this question, only about the vocabulary/phrase searching. I'm expecting some sort of system which assigns each question a score for how well it matches, then uses an algorithm like averaging to combine that score with the number of upvotes.
Obviously, from the state of the related questions tab, that's not working. A better system might be to take the 20 or so best matching, then choose those with the highest upvotes and maybe some other factors. The number originally selected could be tweaked a little to ensure that enough questions get through without too much junk.
In case anyone wonders, "So what?", I think that a functioning "Related" menu/list could be very useful for a number of reasons:
Finding questions which may help with more issues "down the road" when using a specific technique
Presenting the user with more information about their question, potentially giving them more options or workarounds
Giving useful background knowledge about a technique or issue which may help with debugging or implementation