why its not possible to assign byte array to int array while in the case of objects its possible.
Reason: The Array of primitive can't be cast to an array of a different primitive type. While in the case of object it is possible cause array itself is Object, so we can assign an array to Object. e.g.
this code is fine-