Does the following java code guarantee and exclusive lock on an unopened file in Windows?
Does the following java code guarantee and exclusive lock on an unopened file in Windows? import java.io.File; import java.io.FileNotFoundException; import java.io.FileOutputStream; import java.io.IOException; public class Test { public static void main(String[] args) { File file = new File("mylog.log"); try { ...