While java.io.RandomAccessFile does have a close() method java.io.File doesn\'t. Why is that? Is the file closed automatically on fina
java.io.RandomAccessFile
close()
java.io.File
Essentially random access file wraps input and output streams in order to manage the random access. You don't open and close a file, you open and close streams to a file.