Java tutorial
//package com.java2s; import java.io.ByteArrayInputStream; import java.io.ObjectInputStream; public class Main { public static Object deserializable(byte[] bytes) { Object obj = null; try { ByteArrayInputStream bis = new ByteArrayInputStream(bytes); ObjectInputStream ois = new ObjectInputStream(bis); obj = ois.readObject(); bis.close(); ois.close(); } catch (Exception e) { System.out.println("tanslation " + e.getMessage()); e.printStackTrace(); } return obj; } }