Mastering Java: The Ultimate 2026 All-In-One Quiz to Excel in 'Thinking in Java

Session length

1 / 730

What is the primary distinction between 'MappedByteBuffer' and 'ByteBuffer'?

Only 'ByteBuffer' supports encryption

Only 'MappedByteBuffer' can be used with channels

'MappedByteBuffer' maps a file directly into memory

Explanation 'MappedByteBuffer' maps a file directly into memory, while 'ByteBuffer' does not. Option A is incorrect because both classes support encryption. Option B is incorrect because both can be used with channels. Option D is incorrect because 'ByteBuffer' can be used for file operations as well.

Get further explanation with Examzify DeepDiveBeta

'ByteBuffer' cannot be used for file operations

Next Question
Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy