Duplicate :
|
Javac accepts this program: class Test2 <T extends I1 & I2> { } interface I1 { int getFoo(); } interface I2 { float getFoo(); } But correctly rejects this version: interface I1 { int getFoo(); } interface I2 { float getFoo(); } class Test2 <T extends I1 & I2> { }
|