Here you can find the source of serializeObjects(File oof, Object[] objectsOut)
public static void serializeObjects(File oof, Object[] objectsOut) throws IOException
//package com.java2s; // License & terms of use: http://www.unicode.org/copyright.html#License import java.io.File; import java.io.FileOutputStream; import java.io.IOException; import java.io.ObjectOutputStream; public class Main { public static void serializeObjects(File oof, Object[] objectsOut) throws IOException { FileOutputStream fos = new FileOutputStream(oof); ObjectOutputStream oos = new ObjectOutputStream(fos); oos.writeObject(objectsOut);//from w w w . j ava 2 s. c o m oos.close(); } }