I have opened up an input file usingThen I have created a scanner object that reads data from the file.File input=new File("hello.txt")my question is when closing the files why can't I just do input.close() since that is also closing the file?Scanner read_file=new Scanner (input)