Prog2.java

import java.io.*;
class Prog2 {
  public static void main(String[] args) 
    throws IOException, ClassNotFoundException {
    ObjectInputStream ois =
      new ObjectInputStream(new FileInputStream("essai"));
    ClassWithStaticAttributes e = 
      (ClassWithStaticAttributes) ois.readObject();
    System.out.println(e);
    ois.close();
  }
}