IntBuffer duplicate() method in Java with Examples
The duplicate() method of java.nio.IntBuffer Class is used to create a new IntBuffer that shares the given buffer's content, identically in all aspects. Syntax: public abstract IntBuffer duplicate() Return Value: This method returns the new IntBuffer which is carrying the previous IntBuffer's conten