在Java doc文档的ThreadLocal说明中,又如下例子: public class SerialNum {
     // The next serial number to be assigned
     private static int nextSerialNum = 0;     private static ThreadLocal serialNum = new ThreadLocal() {
////////////这段是什么意思?///////////////////////
         protected synchronized Object initialValue() {
             return new Integer(nextSerialNum++);
         }
     };
////////////////////////////////////////////////////     public static int get() {
         return ((Integer) (serialNum.get())).intValue();
     }
 }不是很明白在创建ThreadLocal的时候后面跟着的这段代码是什么意思?
基本问题,还请赐教!
3x!