多项选择题

对于File类中的方法,以下描述正确的选项有哪些()

A.file.createNewFile();用来新建一个文件
B.file.delete();用来删除一个文件
C.file.exists();用来测试一个文件是否存在
D.file.getAbsolutePath();用来获取一个文件的相对路径