javax.xml.parsers中有一个类FactoryFinder中有一个匿名的方法(参见JDK_1.5.0_02附带的源代码), // Define system property "jaxp.debug" to get output
static {
// Use try/catch block to support applets, which throws
// SecurityException out of this code.
try {
String val = ss.getSystemProperty("jaxp.debug" ;
// Allow simply setting the prop to turn on debug
debug = val != null && (! "false".equals(val));
} catch (SecurityException se) {
debug = false;
}
} 不知道这个方法是用来干什么的?什么时候会被调用?
static {
// Use try/catch block to support applets, which throws
// SecurityException out of this code.
try {
String val = ss.getSystemProperty("jaxp.debug" ;
// Allow simply setting the prop to turn on debug
debug = val != null && (! "false".equals(val));
} catch (SecurityException se) {
debug = false;
}
} 不知道这个方法是用来干什么的?什么时候会被调用?
Thread thread = new Thread(new Runnable(){
public void run(){
...
}
});这里的Runnable就是一个匿名类。
static int i;
static{
i = 20;
}
肥猫,你就是经常在bdwm上混得那只么?