KnowledgeBoat Logo

Computer Applications

Define the following with an example:

boolean data type

Values & Data Types Java

ICSE

45 Likes

Answer

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

26 Likes


Related Questions