What is Attributes(Fields)

An attribute is another term for a field. It's typically a public constant or a public variable that can be accessed directly.

Attributes (Fields)

       –         instance variables and static variables (we'll define static later)

       –         Instance variables

       –          variables defined in the class and given a value in each object

  Attributes(Fields) can be:

        –         any primitive data type (int, double, String etc.)

        –         objects of the same or another class

A class is a group of objects which have common properties. It is a template or blueprint from which objects are created. It is a logical entity. It can't be physical. A class in Java can contain: Fields,Methods, Constructors,Blocks, Nested class and interface
Object is an instance of a class while class is a blueprint of an object. An object represents the class and consists of properties and behavior."