Here you can find the source of isSerializable(final Object c)
public static boolean isSerializable(final Object c)
//package com.java2s; //License from project: Apache License import java.io.Serializable; public class Main { public static boolean isSerializable(final Class c) { return (Serializable.class.isAssignableFrom(c)); }//from w w w. ja v a 2 s . com public static boolean isSerializable(final Object c) { return isSerializable(c.getClass()); } }