Computer Science, asked by vijeshyadav1006, 6 months ago

what is data type and explain the different type of data type​

Answers

Answered by DeathAura
6

Answer:

Data types are divided into two groups: Primitive data types - includes byte , short , int , long , float , double , boolean and char. Non-primitive data types - such as String, Arrays and Classes (you will learn more about these in a later chapter)

Answered by Anonymous
4

Answer:

A data type, in programming, is a classification that specifies which type of value a variable has and what type of mathematical, relational or logical operations can be applied to it without causing an error. A string, for example, is a data type that is used to classify text and an integer is a data type used to classify whole numbers.

Data Type, Used for, Example

String ,Alphanumeric characters, hello world, Alice, Bob123

Integer, Whole numbers, 7, 12, 999

Float (floating point), Number with a decimal point, 3.15, 9.06, 00.13

Character, Encoding text numerically, 97 (in ASCII, 97 is a lower case 'a')

Boolean, Representing logical values, TRUE, FALSE

Hope this helps

Similar questions