public interface Foo { int k = 4; /* Line 3 */ }Which three piece of codes are equivalent to line 3?1. final int k = 4;2. public int k = 4;3. static int k = 4;4. abstract int k = 4;5. volatile int k = 4;6. protected int k = 4; - Study24x7
Social learning Network
study24x7

Default error msg

Login

New to Study24x7 ? Join Now
Already have an account? Login
15 Feb 2023 06:35 PM study24x7 study24x7

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

A

1, 2 and 3

B

2, 3 and 4

C

3, 4 and 5

D

4, 5 and 6

study24x7
Write a comment
Related Questions
500+   more Questions to answer
Most Related Articles