[单选题]

( 26 ) Java 对文件类提供了许多操作方法,能获得文件对象父路径名的方法是

A. ) getAbsolutePath ()

B. ) getParentFile ()

C. ) getAbsoluteFile ()

D. ) getName ()

参考答案与解析: