Will this code compile?

interface I1 {};
interface I2 extends I1{};

public class C implements I2, I1{}
Explanation
You can extends interfaces. Sub-interface will include all methods of super interface.

Follow CodeGalaxy

Mobile Beta

Get it on Google Play
Send Feedback