If you're looking for a job as a Java programmer, then I think it's reasonable for the interviewer to expect you to be able to give some sort of answer to "what is your favorite Java class". Being asked the signature of a specific method is pretty bogus, though. If you're getting a lot of questions like that, then you probably don't want the job whether you're 60 or 20.