fork download
  1. /* package whatever; // don't place package name! */
  2.  
  3. interface A<T extends Number, R> {
  4. R foo(T t);
  5. }
  6.  
  7. interface B<S extends String, U> {
  8. S foo(U u);
  9. }
  10.  
  11. class C<T extends Number, R, S extends String, U> implements A<T, R>, B<S, U> {
  12.  
  13. }
  14.  
  15. /* Name of the class has to be "Main" only if the class is public. */
  16. class Ideone
  17. {
  18. public static void main (String[] args)
  19. {
  20. // your code goes here
  21. }
  22. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
Main.java:11: error: C is not abstract and does not override abstract method foo(T) in A
class C<T extends Number, R, S extends String, U> implements A<T, R>, B<S, U> {
^
  where T,R are type-variables:
    T extends Number declared in class C
    R extends Object declared in class C
1 error
stdout
Standard output is empty