What do you understand by Boolean type data? Explain with an example.
81 Likes
A boolean data type is used to store one of the two boolean values — true or false. The size of boolean data type is 8 bits or 1 byte.
Example:
boolean bTest = false;
Answered By
56 Likes
What do you understand by primitive data type? Give two examples.
Distinguish between Character and Boolean literal
Write down the data type of the following:
(a) Integer
(b) Long Integer
(c) A fractional number
(d) A special character
Why is it necessary to define data type in Java programming?