File f = new File("c:\\hiberfil.sys");
//下面应该是true,但却是false。
//不信你试试看
//Why?
System.out.println(f.isFile());
java version "1.4.2_05"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_05-b04)
Java HotSpot(TM) Client VM (build 1.4.2_05-b04, mixed mode)
Winxp Sp2
本文地址:http://com.8s8s.com/it/it15725.htm