java试题- 阅读Shape和Circle两个类的定义。在序列化一个Circle的对象circle到文件时,下面哪个字段会被保存到文件中?
class Shape { public String name; } class Circle extends Shape implements Serializable{ private float radius; transient int color; public static String type = "Circle"; }
class Shape { public String name; } class Circle extends Shape implements Serializable{ private float radius; transient int color; public static String type = "Circle"; }
网友评论0