Q. Which of the following are true about interfaces.

  • (A) Methods declared in interfaces are implicitly private.
  • (B) Variables declared in interfaces are implicitly public, static, and final.
  • (C) An interface contains any number of method definitions.
  • (D) The keyword implements indicate that an interface inherits from another.
πŸ’¬ Discuss
βœ… Correct Answer: (B) Variables declared in interfaces are implicitly public, static, and final.

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
286
Total Visits
πŸ“½οΈ
5 y ago
Published
πŸŽ–οΈ
Ram Sharma
Publisher
πŸ“ˆ
93%
Success Rate