Class DataFlavor in Java

Class DataFlavor in Java Objects of this type define a data type or format for the…