This question already has an answer here:
Given that in some languages an integer variable may be restricted to the memory of the system (i.e. a 32-bit system can store numbers between -(2^31) and (2^31)-1, but this is different for 64-bit), what are similar environmental factors to take into consideration for Strings, specifically those in Java?
I am under the impression String lengths are tied to integers, so a string on a 32-bit system may not hold a string of more than (2^31)-1 characters? Is this correct?
Are there any other factors I should consider?
Aucun commentaire:
Enregistrer un commentaire