Multiple choice

Which of the following methods is not present in the Buffer class in Java?

  1. isReadOnly()

  2. limit()

  3. limit(int x)

  4. isWriteOnly()

  5. position()

Reveal answer Fill a bubble to check yourself
D Correct answer
Explanation

This is the correct choice because there is no method named isWriteOnly() present in the Buffer class.