FileSystem Object有两个方法,分别为CreatText File方法和OpenText File方法。
File类中,获得文件路径的方法是______。
点击查看答案
下面创建一个新文件对象方法错误的是( )。A.File myFile; myFile=new File("mulu/file");B.File myFile=new File();C.myFile=new FileC/mulu","filel");D.File myDir=new file("/mulu"); myFile=new File(Dir, "filer');
下列InputStream构造方法正确的是()。A、InputStream in=new FileReader(“file.txt”)B、InputStream in=new FileInputStream(“file.txt”)C、InputStream in=new InputStreamFileReader (“file.txt”,“read”)D、FileInputStream in=new FileReader(new File(“file.txt”))
下面哪项不是File类的构造方法()A、File(StringfileName)B、File(Filedirectory)C、File(Stringdirectory,StringfileName)D、File(Filedirectory,StringfileName)
A user reports that they are getting an error when trying to save a video file to a share on a server running Windows Server 2003. The administrator looks at the file and finds that it is 5GB. The administrator checks the server and finds that the server has 100GB of free space. This file needs to be saved on the server.Which of the following should the administrator do to accomplish this?()A. Convert the filesystem to EXT3.B. Convert the filesystem to VMFS.C. Convert the filesystem to NTFS.D. Convert the filesystem to FAT32.
The(72)turns the source file into an object file and the(73)turns the object file into an executable file.A.translatorB.compilerC.interpreterD.linker
用面向对象方法设计了一个父类File和两个子类DiskFile和TapeFile,这两个子类继承了其父类的open方法,并给出不同的实现。不同的子类执行open方法时,有不同的行为,这种机制称为( )。A.继承 B.消息传递 C.多态 D.关联