What are primitive datatypes?
Answers
Answered by
1
this is my work sheet pls do it so i can do my work now
Attachments:

AsmaAnwar:
I have my homework to do yet
Answered by
3
hello,
primitive datatypes are those which are , built-in type data type for which the programming language provides built-in support.
types of primitive datatypes:
1.Integer numbers
An integer data type can hold a mathematical integer. Integers may be either signed (allowing negative values) or unsigned (whole numbers only).
2.Booleans
A boolean type, typically denoted "bool" or "boolean", is typically a logical type that can be either "true" or "false". Although only one bit is necessary to accommodate the value set "true" and "false", programming languages typically implement boolean types as one or more bytes.
3.Floating-point numbers
A floating-point number represents a limited-precision rational number that may have a fractional part. These numbers are stored internally in a format equivalent to scientific notation, typically in binary but sometimes in decimal. Because floating-point numbers have limited precision, only a subset of real or rational numbers are exactly representable; other numbers can be represented only approximately.
4.Fixed-point numbers
A fixed-point number represents a limited-precision rational number that may have a fractional part. These numbers are stored internally in a scaled-integer form, typically in binary but sometimes in decimal.
5.Characters and strings
A character type (typically called "char") may contain a single letter, digit, punctuation mark, symbol, formatting code, control code, or some other specialized code (e.g., a byte order mark).
Characters may be combined into strings. The string data can include numbers and other numerical symbols but will be treated as text.
6.Numeric data type ranges
Each numeric data type has its maximum and minimum value known as the range. Attempting to store a number outside the range may lead to compiler/runtime errors, or to incorrect calculations (due to truncation) depending on the language being used.
IN SHORT:
--Primitive types are the most basic data types available within the Java language.
--There are 8: boolean , byte , char , short , int , long , float and double . --These types serve as the building blocks of data manipulation in Java.
--Such types serve only one purpose — containing pure, simple values of a kind.
i hope it helps!!☺☺
primitive datatypes are those which are , built-in type data type for which the programming language provides built-in support.
types of primitive datatypes:
1.Integer numbers
An integer data type can hold a mathematical integer. Integers may be either signed (allowing negative values) or unsigned (whole numbers only).
2.Booleans
A boolean type, typically denoted "bool" or "boolean", is typically a logical type that can be either "true" or "false". Although only one bit is necessary to accommodate the value set "true" and "false", programming languages typically implement boolean types as one or more bytes.
3.Floating-point numbers
A floating-point number represents a limited-precision rational number that may have a fractional part. These numbers are stored internally in a format equivalent to scientific notation, typically in binary but sometimes in decimal. Because floating-point numbers have limited precision, only a subset of real or rational numbers are exactly representable; other numbers can be represented only approximately.
4.Fixed-point numbers
A fixed-point number represents a limited-precision rational number that may have a fractional part. These numbers are stored internally in a scaled-integer form, typically in binary but sometimes in decimal.
5.Characters and strings
A character type (typically called "char") may contain a single letter, digit, punctuation mark, symbol, formatting code, control code, or some other specialized code (e.g., a byte order mark).
Characters may be combined into strings. The string data can include numbers and other numerical symbols but will be treated as text.
6.Numeric data type ranges
Each numeric data type has its maximum and minimum value known as the range. Attempting to store a number outside the range may lead to compiler/runtime errors, or to incorrect calculations (due to truncation) depending on the language being used.
IN SHORT:
--Primitive types are the most basic data types available within the Java language.
--There are 8: boolean , byte , char , short , int , long , float and double . --These types serve as the building blocks of data manipulation in Java.
--Such types serve only one purpose — containing pure, simple values of a kind.
i hope it helps!!☺☺
Similar questions