Jdk in java, A class that implements an interface must implement