Question: what is the difference between java io and nio?
Answer: The first big difference between Java NIO and IO is that IO is stream oriented, where NIO is buffer oriented. ... Furthermore, you cannot move forth and back in the data in a stream. If you need to move forth and back in the data read from a stream, you will need to cache it in a buffer first.