Source Code : Multi Super Interfaces

Java Is Open Source Programming Language You Can Download From Java and Java Libraries From http://www.oracle.com. Click Here to download
We provide this code related to title for you to solve your developing problem easily. Libraries which is import in this program you can download from http://www.oracle.com. Click Here or search from google with Libraries Name you get jar file related it

Multi Super Interfaces

public class MultiSuperInterfaces {
  public interface Marker extends java.io.Serializable, java.rmi.Remote,
      java.lang.Runnable {
  }

  public class Marked implements Marker {
    public void run() {
      // needed for Runnable
    }
  }

  public static void main(String[] args) {
    new MultiSuperInterfaces().print();
  }

  void print() {
    Object o = new Marked();
    if (o instanceof java.io.Serializable) {
      System.out.println("Is Serializable");
    }
    if (o instanceof java.rmi.Remote) {
      System.out.println("Is Remote");
    }
    if (o instanceof java.lang.Runnable) {
      System.out.println("Is Runnable");
    }
  }
}
           
       

Thank with us