fork download
  1.  
  2. @FunctionalInterface
  3. interface Inter {
  4. void foo();
  5. void bar();
  6. }
  7.  
  8. class Ideone {
  9. public static void main (String[] args) {
  10. }
  11. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
Main.java:2: error: Unexpected @FunctionalInterface annotation
@FunctionalInterface
^
  Inter is not a functional interface
    multiple non-overriding abstract methods found in interface Inter
1 error
stdout
Standard output is empty