i am begineer in java and i want to know what are the fields in java and for what they are used???
plz explain in detail

Recommended Answers

instance and/or class variables and they are used for what all variables are used for, storing values.

Jump to Post

All 2 Replies

instance and/or class variables and they are used for what all variables are used for, storing values.

"Fields" is just another name for all the variables and constants belonging to a class (both static and instance variables, but excluding local variables in methods).

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.20 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.