Check that you can layer byte and character streams properly, read/walk files with Path and Files without leaking OS handles, drive ByteBuffer flip/clear/compact, and secure ObjectInputStream with ObjectInputFilter.
More lessons in Complete Core Java