This week's giveaway is in the EJB and other Java EE Technologies forum. We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line! See this thread for details.
Question: If f is an Object of "File" class, which paragraph of program codes is suitable to check if the file exits or not by the method "exits()"? A.Exception e =new IOException("File not found."); if(!f.exists()) throw e; B.if(!f.exists()) throw new IOException("File"+f.getName()+"not found."); C.if(!f.exist()) throw new IOException; D.if(!f.exists()) throw "File Not Found"; E.if(!f.exists()) throw new IOException(); THANK YOU !