A

Admin • 832.27K Points
Coach

Q. 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) None of these
  • Correct Answer - Option(D)
  • Views: 26
  • Filed under category Java
  • Hashtags:

No solution found for this question.
Add Solution and get +2 points.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.