Ah, that's actually a habit formed years ago -- it's taken from a recommendation in Josh Bloch's "Effective Java" book, about writing simple hashCode methods.  37 is an arbitrary constant here, the only thing that's even somewhat interesting is that it (or whatever constant you choose to use) should be a prime.