According to the Java class file specification the limit is 65535:
4.10 Limitations of the Java Virtual Machine
The following limitations of the Java virtual machine are implicit in the
classfile format:
- The number of methods that may be declared by a class or interface is limited to 65535 by the size of the
methods_countitem of theClassFilestructure (ยง4.1). Note that the value of themethods_countitem of theClassFilestructure does not include methods that are inherited from superclasses or superinterfaces.