i got strange doubt..
i want know whether
if(a && b) { } is same as
if(a) { if(b) { } } or not..
both cases giving me same result. but, i'm still not feeling comfort use first method in project.
any helps??
if using if-else statement if loop execute condition true:---
if(condition){ //execute when true } in case using 2 variable , b , operator. property of and operator if giving value true return true otherwise false.
if want use method then
/* check in , b both true */ method execdute if(a && b) { //if , b both return true(a=true,b=true) }
Comments
Post a Comment