Let $B(x,y) : xy=0$
Let our Domain be Integers.
We can make the Claim :
$$\{ \exists x : [\forall y : B(x,y)] \}\tag{1}$$
In other words ,
$$\{ \exists x : [\forall y : xy=0] \}$$
It is indeed true , we can take $x=0$ , hence there does exists some $x$ such that $xy=0$ for all $y$ which are in our Domain Integers.
Hence the Negation must be false.
Now when we change the Domain to be Irrational numbers , there is no such number $x$ (Irrational number) which makes $xy=0$ for all $y$ which are in our Domain Irrational numbers.
Hence the Negation must be true now.
In general , we do not know whether the Claim in true or not.
We just take the written Claim and try to make the Negation.
$$\lnot \{ \exists x : [\forall y : B(x,y)] \}$$
We can use the "Standard" laws :
$$\{ \forall x : \lnot [\forall y : B(x,y)] \}\tag{2A}$$
$$\{ \forall x : [\exists y : \lnot B(x,y)] \}\tag{2B}$$
Using the given Example :
$$\{ \forall x : [\exists y : xy\not=0] \}\tag{2C}$$
Domain Integers will make that false : for all integers $x$ , we can not get some $y$ which makes $xy\not=0$ , because we might have $x=0$ then there is no $y$ to ensure $0y\not=0$
Domain Irrational numbers will make that true : for all Irrational numbers $x$ , we can get some $y=1/x$ which makes $xy=1$ , thus we can ensure $xy\not=0$
SUMMARY :
The given Statement is (1)
The Negation is (2A) when we consider only the outer quantifier
The Negation is (2B) when we consider the outer quantifier with the inner quantifier too
The Negation is (2C) when we consider the outer quantifier with the inner quantified too , while considering the Example $B$ to change $=$ to $\not =$, though that is not very general.
ADDENDUM :
The "Standard" laws are well known. Check here :
https://math.libretexts.org/Courses/SUNY_Schenectady_County_Community_College/Discrete_Structures/02%3A_Logical_Reasoning/2.04%3A_Quantifiers_and_Negations
It is just :
$$\lnot \forall x : X(x) \equiv \exists x : \lnot X(x)$$
$$\lnot \exists x : X(x) \equiv \forall x : \lnot X(x)$$