java extends 2 classes code example Example: Can a class extend multiple abstract classes No, java does not support multiple inheritances