0 / 60 seg.

What does this code do in the context of object serialization?

ByteArrayOutputStream bos = new ByteArrayOutputStream();
ObjectOutputStream oos = new ObjectOutputStream(bos);
oos.writeObject(myObject);
byte[] bytes = bos.toByteArray();