Advertisements
Advertisements
प्रश्न
Write one difference between primitive data types and composite data types.
Differentiate between primitive type and composite type data.
फरक स्पष्ट करा
उत्तर
Sr. No. | Primitive data types | Composite data types |
1. | They are predefined/inbuilt data types. | The user defines these data types and comprises primitive data type values. |
2. | Examples: int, byte, long, short, char, float, double, boolean. | Examples: Array, class, interface. |
3. | System developers define primitive data types. | Users define composite data types. |
shaalaa.com
Classes as an Object Factory
या प्रश्नात किंवा उत्तरात काही त्रुटी आहे का?
पाठ 1.03: Values and Data Types - Review Insight [पृष्ठ ३१]