Hi, I wonder whether someone knows, what is the li...
# announcements
m
Hi, I wonder whether someone knows, what is the limit for String length in kotlin?
d
depends on the target platform. on the JVM it's Int.MAX_VALUE
or your heap size, of course 😄
☝️ 1
a
Or 64K if you need to make it Serializable (java.io.Serializable): 2 bytes are used to encode string length
If anyone still uses java.io.Serializable...