How many byte of storage is taken up for a string variable. E.g int takes up 4 and short takes up 2. How many does string takes up? unlimited?
Printable View
How many byte of storage is taken up for a string variable. E.g int takes up 4 and short takes up 2. How many does string takes up? unlimited?
It takes up storage only when it has been initiated, so the storage it takes depends on the value of the String.