Java interface