πŸ“Š JAVA
Q. In Java, can an interface have static methods with implementations?
  • (A) No, interfaces cannot have static methods
  • (B) Only if the methods are marked as "private"
  • (C) Only if the methods are marked as "final"
  • (D) Yes, starting from Java 8, interfaces can have static methods with implementations
πŸ’¬ Discuss
βœ… Correct Answer: (D) Yes, starting from Java 8, interfaces can have static methods with implementations

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
157
Total Visits
πŸ“½οΈ
1 y ago
Published
πŸŽ–οΈ
Vijay Sangwan
Publisher
πŸ“ˆ
99%
Success Rate