Hi Param,

Welcome to the forum.

Back to youre question: ofcourse, B extends A, wich means also the interface.