What do you understand by primitive data type? Explain in detail. (5)
Answers
Answer:
In computer science, a primitive is a fundamental data type that cannot be broken down into a more simple data type. For example, an integer is a primitive data type, while an array, which can store multiple data types, is not.
Answer:
Hope it helps you mate .
Explanation:
In computer science, a primitive is a fundamental data type that cannot be broken down into a more simple data type. For example, an integer is a primitive data type, while an array, which can store multiple data types, is not.
Some programming languages support more data types than others and not all languages implement data types the same way. However, most high-level languages share several common primitives.
Primitives supported by each programming language are sometimes called "built-in data types" since they store values directly in memory. Non-primitive data types store references to values rather than the values themselves. Examples of non-primitive Java data types include arrays and classes.