This question already has an answer here: use of array of zero length 3 answers Java provide a way to declare a String array with zero length as String[] str = new String[0]; It’s totally valid but why do we need this. we can’t even use it due to it’s zero size.
The post Java – String[] str = new String[0] is valid [duplicate] appeared first on BlogoSfera.