Question: what are the data members in java?
Answer: In Java Data members is nothing but a variables, instance variables. It may be of any type like private , public, etc. For example - class A contains data members - id, name and salary.