OnJava8-Examples/io/FreezeAlien.java
Bruce Eckel 49edcc8b17 reorg
2015-06-15 17:47:35 -07:00

14 lines
387 B
Java

//: io/FreezeAlien.java
// ©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);
}
} /* Output: (None) *///:~