2. The number of real roots of the equation $|x|-\frac{4}{x}=\frac{3|x|}{x}$ is ( ).
(A) 1
(B) 2
(C) 3
(D) 4
2.A.

When $x>0$, $x-\frac{4}{x}=3, x^{2}-3 x-4=0$, $x_{1}=4, x_{2}=-1$ (discard);

When $x<0$, $-x-\frac{4}{x}=-3, x^{2}-3 x+4=0, \Delta<0$, no real roots.
In summary, the original equation has only one real root $x=4$.