Computer Applications
What do you understand by primitive data type? Give two examples.
Values & Data Types Java
ICSE
85 Likes
Answer
Primitive data types are the basic or fundamental data types used to declare a variable. Examples of primitive data types in Java are byte, short, int, long, float, double, char, boolean.
Answered By
48 Likes
Related Questions
Define the following with an example each:
(a) Implicit type conversion
(b) Explicit type conversion
Why is it necessary to define data type in Java programming?
Write down the data type of the following:
(a) Integer
(b) Long Integer
(c) A fractional number
(d) A special character
What do you understand by Boolean type data? Explain with an example.