Question: can byte array be null java?
Answer: Hi Sarone, Only object references can be null; bytes can be zero, though, as you obviously know, and that's what you meant. In your code snippet, the loop is completely unnecessary; when you allocate the array, all the elements are guaranteed to be zero already.