0

I want to copy a byte[] to not return the initial object, but a deep copy. I'm aware of the fact that using clone() is not recommended, but as i look it up on google&co I mostly see clone() for a copy with byte[].

Is it just laziness of people or is it a valid method to copy an array of bytes?

Ousmane D.
  • 52,579
  • 8
  • 80
  • 117
AdrianL
  • 325
  • 2
  • 15

0 Answers0