Java tutorial
//package com.java2s; import java.io.Serializable; import java.lang.reflect.Field; public class Main { public static boolean isSerializable(Field f) { Class<?>[] cls = f.getType().getInterfaces(); for (Class<?> c : cls) { if (Serializable.class == c) { return true; } } return false; } }