Java interface experiment