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.
The string data type is generally considered non-primitive since it is stored as an array of characters.
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.
This page contains a technical definition of Primitive. It explains in computing terminology what Primitive means and is one of many Internet terms in the TechTerms dictionary.
All definitions on the TechTerms website are written to be technically accurate but also easy to understand. If you find this Primitive definition to be helpful, you can reference it using the citation links above. If you think a term should be updated or added to the TechTerms dictionary, please email TechTerms!
Subscribe to the TechTerms Newsletter to get featured terms and quizzes right in your inbox. You can choose to receive either a daily or weekly email.