填空题

请将程序补充完整。
import java.awt.*;
public class FirstFrame extends Frame
public static void main(String args[])
FirstFrame fr=new FirstFrame("First container!");
fr.setSize(240,240);
fr.setBackground(Color.yellow);
public FirstFrame(String str)
super(str);

【参考答案】

fr.setVisible(true)
<上一题 目录 下一题>
热门 试题

填空题
下面程序段是从对象流中读取对象,请将程序补充完整。 import java.util. *; import java.io. *; public class UnSerializaDate Dated=null; UnSerializaDate() try FilelnputStream f=new FileInputStream( date.ser ); ObjectInputStream s=new ObjectInputStream(f); f.close(); catch(Exceptione) e.printStackTrace(); public static void main(String args[]) public static void main(String args[]) UnSerializaDate a=new UnSerializaDate(); System.out.println( The date read is: +a.d.toString());
填空题
一个类只有实现了______接口,它的对象才是可串行化的。
相关试题
  • 下列程序从标准输入设备——键盘读入一个字...
  • 下面程序段是从对象流中读取对象,请将程序...
  • 用于输入压缩文件格式的ZipInputStream类所...
  • 在数据管理技术发展的三个阶段中,数据共享...
  • JScrollPane面板的滚动条是通过哪个对象来...