Chapter 11: Problem 26
If an interface has fields, how are they treated?
Short Answer
Expert verified
Answer: Fields in an interface are treated as constants. They are implicitly public, static, and final, meaning they cannot be modified and are shared among all instances of classes implementing the interface. Fields in an interface are typically used for storing common values or constants for multiple implementing classes.