When we are extending an class and implementing an interface we write it as-
public interface AnyInterface{ ---- }
public class Base{ -- }
public class Child extends Base implements AnyInterface{ ---- }
now my question is why cant we write it as –
public class child implements AnyInterface extends Base{ --- }
We may extend only one class but may implement one to many interfaces. In that case, it would be more reader-friendly to have the extend-ing first before the implement-ing stuff.