The getDefinedSize and setDefinedSize methods of the Field class retrieve or set the data capacity of a Field object, respectively.
The getDefinedSize and getActualSize methods are different. For example, consider a Field object of data type char and a getDefinedSize property value of 50, containing a single character. The getActualSize property value it returns is the length in bytes of the single character.
public int getDefinedSize();
public void setDefinedSize(int pl);
p1 | An integer that sets the data capacity of the field. |