Is it possible to searialize/desearialize anonymous class in Java?
Example:
ByteArrayOutputStream operationByteArrayStream = new ByteArrayOutputStrea
Note that in addition to Task implementing Serializable, the outer class must also be Serializable. You may end up serializing unnecessary member states.