+ 1
What is value of d can u explain these?
class Program { public static void main(String[] args) { boolean d; int a=2,b=3,c=0; d=a>b>c; System.out.println("d="+d); } }
3 Respuestas
+ 9
d=a>b>c
(a>b is calculated first and returns "0" because it is fault)
d=0>c
(returns "0" again…)
+ 1
change d=a>b>c; to d=a>>b>c;
the output will be d=false
+ 1
yea I got it thnx but how it works d=a>>b>c