I could not point out exact difference between getFreeSpace()
and getUsableSpace()
method of File
class. When i run following code , got same o/p.
Class Start {
public static void main(String [] args) {
File myfile = new File("C:\\html\abc.txt");
myfile.createNewFile();
System.out.println("free space "+myfile.getFreeSpace()+"usable space "+myfile.getUsableSpace());
}
}
O/P is
free space 445074731008 usable space 445074731008
Could any one tell me what is exact difference ?