/*class equals1 {
static boolean a=true, b, c;
public static void main (
String[] args) {
boolean x = a || (b = true) && (c = true);
System.out.print(a + "," + b + "," + c);
}}
*/
The output is true,false,false
But according to operator precedence && comes before || so according to my understanding (b=true) && (c=true ) should have been evaluated.
Therefore producing output true,true,true
Please tell me where i,am going wrong !
Thanks in advance