πŸ“Š JAVA
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
πŸ’¬ Discuss
βœ… Correct Answer: (D) None of these

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
87
Total Visits
πŸ“½οΈ
1 y ago
Published
πŸŽ–οΈ
Sonali Mishra
Publisher
πŸ“ˆ
92%
Success Rate