Question: what is the difference between an attribute and a field?
Answer: Field A data member of a class. Unless specified otherwise, a field can be public, static, not static and final. Attribute An attribute is another term for a field. It's typically a public field that can be accessed directly.