小弟在看thinking in java 在GUI的源码中几乎每一段都会有这样的一个warning,The serializable class FlowLayout1 does not declare a static final serialVersionUID field of type long小弟就是不明白这个serivalVersionUID 为什么他要建议我申明呢? 他具体又是什么用的呢?谢谢大虾解答//: gui/FlowLayout1.java
// Demonstrates FlowLayout.
import javax.swing.*;
import java.awt.*;
import static net.mindview.util.SwingConsole.*;public class FlowLayout1 extends JFrame {
  /**
 * 
 */
public FlowLayout1() {
    setLayout(new FlowLayout());
    for(int i = 0; i < 20; i++)
      add(new JButton("Button " + i));
  }
  public static void main(String[] args) {
    run(new FlowLayout1(), 300, 300);
  }
} ///:~The serializable class FlowLayout1 does not declare a static final serialVersionUID field of type long