Advertisements
Advertisements
Question
Differentiate between built-in data types and user defined data types.
Distinguish Between
Solution
S. No. | Built-in data type (Primitive data type) | User-defined data type |
1. | These are basic data types supplied by Java. | These data types are user-defined. |
2. | These data types are accessible throughout all components of a Java program. | The availability of certain data types is based on their scope. |
3. | The size of certain data types (int, float, char, etc.) is constant. | The size of these data types is different. |
shaalaa.com
Is there an error in this question or solution?