Joe Harry wrote:What would answering this question indicate to the interviewer?
Either the interviewer is asking a silly question, or they don't actually expect a 'right' answer but want to hear the reasoning the candidate gives. Obviously there are going to be platform dependent limitations here (no idea what they are), but from a purely
Java perspective you could say that the arguments are placed into an array, so what is the maximum size an array can be? Not sure if the JLS gives a specific limit, but the array has a size which is a positive signed-int, so that would limit the number of parameters to about 2^31.
But if anyone get's anywhere near the actual limit then I don't ever want to work on that system!