⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 test12.java~

📁 SCJP认证考试资料
💻 JAVA~
字号:
import java.io.*;
class B{
    int i = 2;
    B(int i) {
	this.i = i;
    }
}
class Test12 extends B implements Serializable {
    int x = 5;
    Test12(int x) {
	super(5);
	this.x = x;
    }
    public static void main(String[] args) {
	Test12 t = new Test12();
    }
}
/*
class Test12{
    public static void main(String[] args) throws Exception {
	File f = new File("a.txt");
	ObjectOutputStream oos = new ObjectOutputStream(
				      new FileOutputStream(f));
	oos.writeObject(new A(2));
	oos.close();
	ObjectInputStream ois = new ObjectInputStream(
						      new FileInputStream(f));
	A obj = (A)ois.readObject();
	System.out.println(obj.x);
	ois.close();
    }
}
*/	   

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -