java implements two interfaces