A quick Analogy to FileInputStream and RandamAccessFile would be a cassette/tape and a CD
. You listen to audio on tape sequentially. whereas you can quickly jump to difference songs/sudio in case of CD.
Jumping around in RandamAccessFile can be done by using seek()
HTH