0
Write a java statement to declare and initialize a boolean variable with any legal value
Java
4 Antworten
+ 2
Sahil Gupta a boolean variable stores only true or false values.
to correct your effort your statement would look like this
boolean b= 1>6?true:false;
0
Hi! First of all we want to see your attempt in this question.
0
boolean a=if(1>6);
is this correct ?
0
boolean b=false;