InterviewSolution
Saved Bookmarks
| 1. |
Select the action of the method long seek()?(a) Attempts to readup to count bytes into buffer starting at buffer[offset](b) Writes a single byte to an output stream(c) Sets the current position in the stream to the specified offset from specified origin and hence returns the new position(d) None of the mentioned |
|
Answer» The correct answer is (c) Sets the current position in the stream to the specified offset from specified origin and hence returns the new position To explain I would say: long Seek(long offset, SeekOrigin origin) Sets the current position in the stream to the specified offset from the specified origin. It returns the new position. |
|