OnJava8-Examples/io/FreezeAlien.java

15 lines
382 B
Java
Raw Normal View History

2015-09-07 11:44:36 -06:00
// io/FreezeAlien.java
2015-06-15 17:47:35 -07:00
// <20>2015 MindView LLC: see Copyright.txt
// Create a serialized output file.
import java.io.*;
public class FreezeAlien {
public static void main(String[] args) throws Exception {
ObjectOutput out = new ObjectOutputStream(
new FileOutputStream("X.file"));
Alien quellek = new Alien();
out.writeObject(quellek);
}
2015-09-07 11:44:36 -06:00
}
/* Output: (None) */