Is cyclic inheritance allowed in Java?