Hello, i'd like to confirm the following:

suppose the question is: we have three int's (int a, int b, int c) and the value is true if and only if the sum of a and c is greater than b, then b is divisible by 3 without remainder.

Do both the answers below mean the same?

Code Java:

if (!((a + c) > b) || b % 3 == 0) { return true;

Code Java:

if(a+ c>b && b%3==0){ return true;