your both the statements are correct.
in second case |4|-|7| = -3 because you are subtracting the absolute values.
In second case you are adding the absolute values. So there should be no confusion. -4-7=-11
Just remember that the absolute value or modulus returns positive value.
That is |-5| = 5; |-x| = x ; |a| = a etc.
Thus |-a| + |b| = a+b; |-a| - |b| = a-b; |-a| - |-b| = a - b etc