My Java Quiz

The ultimate place to learn Java!

Question #21: Which of the following is true?

public interface I {
  public void method();
}

public abstract class C implements I {
  private C() {
  }

  public static C getInstance() {
    return new C();
  }

  public void method() {
  }
}