code: public static Object deserialize(byte[] arr) {
          try (InputStream bis = new ByteArrayInputStream(arr);
               ObjectInputStream ois = new ObjectInputStream(bis)) {
              return ois.readObject();
          } 
          catch (IOException ex) {
              throw new UncheckedIOException(ex);
          }
          catch (ClassNotFoundException ex) {
              throw new RuntimeException(ex);
          }
      }
docs: Deserializes the byte array.
  
  @param arr
  @return