Java tutorial
import java.awt.datatransfer.DataFlavor; public class Main { public static void main(String[] args) { DataFlavor df = DataFlavor.stringFlavor; System.out.println(df.isRepresentationClassSerializable()); } }