• 2022-06-09
    在JAVA中,要判断D盘下是否存在文件abc.txt,应该使用以下( )判断语句。
    A: if(new File(“d:abc.txt”) .exists() = =1)
    B: if(File.exists(“d:abc.txt”) = =1)
    C: if(new File(“d:/abc.txt”) .exists( ) )
    D: if(File.exists(“d:/abc.txt))