fork download
  1. class Ideone {
  2. public static interface DS {}
  3. public static interface SDS {}
  4.  
  5. public static class A implements DS {}
  6. public static class B extends A implements SDS {}
  7.  
  8. public static void main(String[] args) {
  9. B b = new B();
  10. System.out.println(b instanceof SDS);
  11. }
  12. }
Success #stdin #stdout 0.08s 54624KB
stdin
Standard input is empty
stdout
true