Question
Do interfaces have member variables?
Answer
Interfaces may have member variables, but these are implicitly public, static, and final- in other words, interfaces can declare only constants, not instance variables that are available to all implementations and may be used as key references for method arguments for example.
š² Practice Offline on Mobile: Download the free QA Automation & SDET Prep app on Google Play & App Store.