Menu
Topics Index
...
`


Datatypes > Primtive Dataypes >
Siva Nookala - 11 Apr 2016

About Boolean Data Type In Java:

Boolean is the primitive data type in Java. There are only two values that a boolean type can take they are: true or false. Boolean type is used when we want to test a particular condition during the execution of the program. Boolean values are often used in Selection statements and Iteration statements.

Boolean type is denoted by the keyword boolean and and their size is only '1-bit' and not '1-byte'. The words true and false cannot be used as identifiers. Boolean is also the type required by conditional expression that govern the Control statements such as if condition and for loop.

0
Wrong
Score more than 2 points

© meritcampus 2016 - 2017

All Rights Reserved.