Computer Science, asked by mimogoswami3260, 1 year ago

interface Test{ int p = 10; //line 1 public int q = 20; //line 2 public static int r = 30; //line 3 public static final int s = 40; //line 4 }

Which of the above line will give compilation error?
A.1
B.2
C.3
D.4

Answers

Answered by meghakatiyar1
0
option A is correct because for interface text the value of the variable and the constant should be of 1 so alone is also we are one
Answered by Anonymous
0
Heyaaa mate

The answer is

Option A
Similar questions