I'm unclear as to whether creating a new File object in Java will actually store the data I write into the File onto storage, or whether it simply stores the File object on the JVM heap in memory.
If it's simply stored in memory, I was wondering how I can clear the File from memory once it's no longer needed to free up JVM heap space.
Thank you!