Question 1
Which of the following statements about Java 7 interfaces are true?
A. Interface methods are implicitly public and abstractCorrect answer
Correct: in Java 7 every interface method is implicitly public and abstract.
B. Interface fields are implicitly public, static, and finalCorrect answer
Correct: interface fields are implicitly public, static, and final constants that must be initialized at declaration.
C. An interface may declare static methods with bodies
Wrong: static (and default) methods with bodies in interfaces arrived in Java 8; a Java 7 interface cannot declare them.
D. A class may implement multiple interfacesCorrect answer
Correct: a class may implement any number of interfaces, which is a core purpose of interfaces.
E. An interface field may be reassigned by an implementing class
Wrong: interface fields are implicitly final constants, so an implementing class can never reassign them.
Explanation
In Java 7, every interface method is public abstract (Interface methods are implicitly public and abstract) and every field is a public static final constant that must be initialized at declaration (Interface fields are implicitly public, static, and final) — hence An interface field may be reassigned by an implementing class is impossible. Multiple interface implementation is the whole point of interfaces (A class may implement multiple interfaces). Static and default methods with bodies arrived in Java 8, so An interface may declare static methods with bodies is false for this exam.