Analyze the following Java code for boolean logic:
boolean a = true, b = false; boolean result = a || b && a;
AND has higher precedence than OR
result is false
OR has higher precedence than AND
result is true