If I'm not mistaken, which is most likely, an uninitialized array of Strings is filled with null, one of Int is filled with 0 and a boolean with false. And what is the []char filled with?
If I'm not mistaken, which is most likely, an uninitialized array of Strings is filled with null, one of Int is filled with 0 and a boolean with false. And what is the []char filled with?
Yes by uninitialized you mean something like this:
So the array is
null
and is not filled with anything, because an array is not a primitive, but an object (even though it is made up of primitives).Now, if you mean something like this:
So yes, that array is filled with char 0, or unicode \u0000, which is the null control character and has no representation (it looks like it is
""
, although it's not the same as an empty string).