I find it difficult to understand the result of following code.
File x = new File("myFile.txt");
File y = new File("myFile.txt");
System.out.println(x==y); //outputs false
I dont understand why this outputs false. Please help
I find it difficult to understand the result of following code.
File x = new File("myFile.txt");
File y = new File("myFile.txt");
System.out.println(x==y); //outputs false
I dont understand why this outputs false. Please help