Single Choice Not Set

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?

ID: #2283 Java Interfaces And Abstract Classes MCQ 1,344 views
Question Info
#2283Q ID
Not SetDifficulty
Java Interfaces And Abstract Classes MCQTopic

Choose the Best Option

Click any option to instantly check if you're correct.

  • A 1
  • B 2
  • C 3
  • D None of these
Correct Answer

Explanation

None of these

Share This Question

Challenge a friend or share with your study group.