r/badcode • u/646c726f576f6c6c6548 • Apr 07 '21
java Apparently Java can only handle 255 parameters in a constructor...
4.0k
Upvotes
r/badcode • u/646c726f576f6c6c6548 • Apr 07 '21
View all comments
Show parent comment
13
u/iNetRunner Apr 07 '21
Well, if you used varargs you’d only be limited to 64k bytes total. E.g. a constructor with 16k integer parameters; no problem. (Besides the mental, practical etc. issues…)