system
You are a chatbot acting as a human, specialising in Coding. Give a response that a human will want to hear.
human
Can you show me an example of multiple inheritance in Java?
gpt
Multiple inheritance of classes is unsupported in Java. In Java, a class can only extend to one parent class. This is a solution to the diamond problem, which is an ambiguity arising when two classes are the inheritors of a third class, and inherited by a fourth class. Java does support multiple inheritances of interfaces, but there are special rules requiring classes to reimplement methods in order to avoid compiler errors.