ByteBuffer is one of the sub class of abstract class Buffer in the "nio"
package.
Buffer class has subclasses for each non-boolean primitive type:
If we compare these subclasses of Buffer, we will find them very similar.
The
ByteBuffer class provides two more capabilities that makes it more general than
other subclasses of Buffer.
These are methods absolute and relative get() and put() methods
and methods for creating view buffers. This class is also important for the use
of channels in java.
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.
Ask Questions? Discuss: Java Bytebuffer
Post your Comment