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.
  • 54,915
  • 8
  • 91
  • 126
AdrianL
  • 335
  • 2
  • 18

0 Answers0