刚学JAVA   碰到这个问题看不明白
import java.awt.*;
import java.awt.event.*;
public class CardLayoutDemo extends Frame{
         Panel pnlCommandArea = new Panel();
Panel pnlDiaplayArea = new Panel();
CardLayout cardLayout1 = new CardLayout();
Button btnFirst = new Button("第一个");
Button btnPrevious = new Button("前一个");
Button btnNext = new Button("下一个");
Button btnLast = new Button("最后一个");

public CardLayoutDemo(){
         ......    //  简单的一些发法
         }
编译时提示如下错误:
the serializable class CardLayoutDemo do not declare a static final serialVersionUID field of type long
我看不懂,这个问题说的是什么啊
马上熄灯了,明早来看~~            
原来学习的感觉挺好~~~

解决方案 »

  1.   

    the serializable class CardLayoutDemo do not declare a static final serialVersionUID field of type long这是一个警告,不是错误。
    在JDK1.5及以上版本需要定义这么个东东,其实你不定义也照样能编译运行。
      

  2.   

    serializable 类 CardLayoutDemo 未声明类型为 long 的静态终态 
     serialVersionUID 字段
      

  3.   

    serialVersionUID 字段
    这个是什么意识啊
      

  4.   

    这是个警告~是关于一个类的序列化问题的
    因为序列化之后要避免同名类的问题,所以jdk建议将每一个可序列化的类指定一个唯一的编号,一面冲突这个应该不影响编译啊?