Play with streams

Report a typo

Reorder the following lines to make the serialization code correct.

Put the items in the correct order
BufferedOutputStream bufferedStream = new BufferedOutputStream(fileStream);
FileOutputStream fileStream = new FileOutputStream(...);
objectStream.close();
ObjectOutputStream objectStream = new ObjectOutputStream(bufferedStream);
objectStream.writeObject(...);
___

Create a free account to access the full topic