What is difference between random file access and sequential file access in java?

Answer:
During sequential access, if you want to access the nth byte of a file, you must read all bytes 0 through n.

During random file access, you may skip directly to the nth byte without having to read through all previous bytes.
First answer by Moobler. Last edit by Moobler. Contributor trust: 354 [recommend contributor recommended]. Question popularity: 1 [recommend question].