private static Properties prop = new Properties();
    
     static{
      try {
     //InputStream ins = getClass().getResourceAsStream("db.properties");
     InputStream ins = Thread.currentThread().getContextClassLoader().getResourceAsStream("test/test/db.properties");
     // InputStream ins = new FileInputStream("test/test/db.properties");
prop.load(ins);
} catch (IOException e) {
e.printStackTrace();
}
    }
     
     
     public static String getValueFromProperties(String key){
      return prop.getProperty(key);
     }
 如上边的程序,静态变量和静态块的先后顺序能不能改变为什么??