- Which three piece of codes are equivalent to line 3?
public interface Foo
{
int k = 4; /* Line 3 */
}
final int k = 4;
public int k = 4;
static int k = 4;
abstract int k = 4;
volatile int k = 4;
protected int k = 4;
- A. 1, 2 and 3
- B. 2, 3 and 4
- C. 3, 4 and 5
- D. 4, 5 and 6