【詳解卡新福利】寫作批改懸賞券,將於 2024/09/30 23:59:59 過期,還沒使用或領取,趕快前往領取並使用吧! 前往查看

【阿摩】未分類題庫題庫下載題庫

上一題
35.有一 File 類別物件 f,它將以方法 exists 檢查該檔案是否存在,下列 JAVA 程式碼何者最適宜?
(A) Exception e= new IOException( “File not found!”); if (!f.exists()) throw e;
(B) if (!f.exists()) throw “File not found!”);
(C) if (!f.exists()) throw new IOException ();
(D) if (!f.exists()) throw new IOException ( “File ” +f.getName()+ “not found!”)


35.有一 File 類別物件 f,它將以方法 exists 檢查該檔案是否存在..-阿摩線上測驗