MCPcopy Index your code
hub / github.com/BruceEckel/OnJava8-Examples / main

Method main

serialization/xfiles/ThawAlien.java:12–18  ·  view source on GitHub ↗
(String[] args)

Source from the content-addressed store, hash-verified

10
11public class ThawAlien {
12 public static void
13 main(String[] args) throws Exception {
14 ObjectInputStream in = new ObjectInputStream(
15 new FileInputStream(new File("X.file")));
16 Object mystery = in.readObject();
17 System.out.println(mystery.getClass());
18 }
19}
20/* Output:
21class Alien

Callers

nothing calls this directly

Calls 1

readObjectMethod · 0.80

Tested by

no test coverage detected