Does new File(“…”) lock the file?
问题 I read that new File("path") doesn't physically create a file on disk. Though in the API it is said: Instances of this class may or may not denote an actual file-system object such as a file or a directory. If it does denote such an object then that object resides in a partition. A partition is an operating system-specific portion of storage for a file system. A single storage device (e.g. a physical disk-drive, flash memory, CD-ROM) may contain multiple partitions. So I'm curious if it is