Given:
1. public class Task implements Actionable { public void doIt() { } } 2. /* w w w .j ava 2 s . com*/ 3. abstract class Test extends Task { } 4. 5. abstract class Compile extends Task { public void doIt(int x) { } } 6. 7. class Run extends Task implements Actionable { public void doStuff() { } } 8. 9. interface Actionable { public void doIt(); }
What is the result? (Choose all that apply.)
A is correct; all of these are legal declarations.
B, C, D, E, and F are incorrect.