State two differences between fundamental and user-defined data type.
Question : State two differences between fundamental and user-defined data type.
Comparison of Fundamental & User defined data type
Fundamental data type | User defined data type |
These are inbuilt data type provided by
the Java Language. | These are data types created by the user
using fundamental or user defined data
type or both. |
The size of it is fixed. | The size of different user-defined data
type depends upon the size of the
individual components of it. |
These data types are available in all parts
of a program within a class | These data types are available only as
specified by the access specifiers. |