Java Swing Tutorial - Java DataFlavor .isRepresentation ClassSerializable ()


DataFlavor.isRepresentationClassSerializable() has the following syntax.

public boolean isRepresentationClassSerializable()


In the following code shows how to use DataFlavor.isRepresentationClassSerializable() method.

import java.awt.datatransfer.DataFlavor;
/* w w w . j  a  v a2 m*/
public class Main {

  public static void main(String[] args) {

    DataFlavor df = DataFlavor.stringFlavor;

    System.out.println (df.isRepresentationClassSerializable ());

The code above generates the following result.