Why does Java limit the size of a method to 65535 byte?
See the Java Virtual Machine Specification section 4.10:
4.10 Limitations of the Java Virtual Machine
- The amount of code per non-native, non-abstract method is limited to 65536 bytes by the sizes of the indices in the exception_table of the Code attribute (§4.7.3), in the LineNumberTable attribute (§4.7.8), and in the LocalVariableTable attribute (§4.7.9).
There's few good reasons to have a method that long in an object-oriented programming language.