Why does ByteBuffer\'s flip() method called \"flip\"? What is \"flipped\" here? According to apidoc, two successive flips won\'t restore original state, and multiple flips w
flip() method makes a buffer ready for a new sequence of channel-write or relative get operations: It sets the limit to the current position and then sets the position to zero.
Buffer keeps track of the data written into it. Post writing, flip() method is called to switch from writing to reading mode.