📄 class1.java
字号:
/**
* This class is designed to be packaged with a COM DLL output format.
* The class has no standard entry points, other than the constructor.
* Public methods will be exposed as methods on the default COM interface.
* @com.register ( clsid=DFFE86C0-ED1D-11D2-BB52-006097B5EAFC, typelib=DFFE86C1-ED1D-11D2-BB52-006097B5EAFC )
*/
/**
* @com.register ( clsid=DFFE86C9-ED1D-11D2-BB52-006097B5EAFC, typelib=DFFE86C8-ED1D-11D2-BB52-006097B5EAFC )
*/
public class Class1 implements java.io.Serializable
{
private String test = "Guy";
Class1()
{
com.ms.win32.User32.MessageBox(0, test + ", this = " + this, "constructor 1", 0);
}
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException
{
com.ms.win32.User32.MessageBox(0, test + ", this = " + this, "writeObject 1", 0);
test = "Changing string in writeObject.";
out.defaultWriteObject();
com.ms.win32.User32.MessageBox(0, test + ", this = " + this, "writeObject 2", 0);
}
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException
{
in.defaultReadObject();
com.ms.win32.User32.MessageBox(0, test + ", this = " + this, "readObject 1", 0);
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -