Which interface declarations generate a compile-time error?

by on November 13, 2008

Q: Which interface declarations generate a compile-time error?
interface A { void main(String[] args); }
interface B { public void main(String[] args); }
interface C { private void main(String[] args); }