The
which is carrying the previous Long buffer content
Below are the examples to illustrate the
Output:
Original LongBuffer: [8, 0, 9, 0, 0, 0, 0, 0, 0, 0]
Duplicate LongBuffer: [8, 0, 9, 0, 0, 0, 0, 0, 0, 0]
Output:
Original LongBuffer: [8, 0, 9, 0, 0, 0, 0, 0, 0, 0]
read-only LongBuffer: 8, 0, 9, 0, 0, 0, 0, 0, 0, 0,
duplicate copy of read-only LongBuffer: 8, 0, 9, 0, 0, 0, 0, 0, 0, 0,