A boolean keyword is a primitive data type.it is used to store only two possible values ,either true or false.
for ex:
public class Learner{
public static void main(String[]args){
int a=6;
int b=4;
boolean cond1=true;
boolean cond2=false;
if(a>b){
System.out.println(cond1);
}else{
System.out.println(cond2);
}
}
}