6.12 |
Which statements are true about interfaces? Select the two correct answers.
|
6.13 |
Which of these field declarations are legal within the body of an interface? Select the three correct answers.
|
6.14 |
Which statements are true about interfaces? Select the two correct answers.
|
6.15 |
Which statement is true about the following code? // Filename: MyClass.java abstract class MyClass implements Interface1, Interface2 { public void f() { } public void g() { } } interface Interface1 { int VAL_A = 1; int VAL_B = 2; void f(); void g(); } interface Interface2 { int VAL_B = 3; int VAL_C = 4; void g(); void h(); } Select the one correct answer.
|
6.16 |
Given the following code, which declaration can be inserted at the indicated line without causing a compilation error? interface MyConstants { int r = 42; int s = 69; // INSERT CODE HERE } Select the two correct answers.
|