In wiki https://en.wikipedia.org/wiki/Cartan_subalgebra Example 4, it says that Cartan subalgebra of complex semisimple Lie algebra is not maximal Abelian subalgebra.
However in Brian C. Hall's GTM222 Page162, 10th line from the bottom, it says Cartan subalgebra of complex semisimple is maximal Abelian subalgebra.
How to explain these? Who is right?
Both are right. First, the book is right: the notion of a maximal abelian subalgebra refers to inclusion, and a Cartan subalgebra of a complex semisimple Lie algebra certainly is maximal abelian.
The second notion is the one of the maximal dimension of an abelian subalgebra is an interesting invariant, say $\alpha(L)$, for a Lie algebra $L$. For simple complex Lie algebras it is given as follows (see here); $$\begin{array}{c|c|c|} \mathfrak{s} & \dim (\mathfrak{s}) & \alpha(\mathfrak{s}) \\ \hline A_n,\,n\ge 1 & n(n+2) & \lfloor (\frac{n+1}{2})^2 \rfloor \\ \hline B_3 & 21 & 5 \\ \hline B_n,\, n\ge 4 & n(2n+1) & \frac{n(n-1)}{2}+1 \\ \hline C_n,\,n\ge 2 & n(2n+1) & \frac{n(n+1)}{2} \\ \hline D_n,\,n\ge 4 & n(2n-1) & \frac{n(n-1)}{2} \\ \hline G_2 & 14 & 3 \\ \hline F_4 & 52 & 9 \\ \hline E_6 & 78 & 16 \\ \hline E_7 & 133 & 27 \\ \hline E_8 & 248 & 36 \\ \end{array} $$
The wikipedia references says the following: " The dimension of a Cartan subalgebra is not in general the maximal dimension of an abelian subalgebra, even for complex simple Lie algebras." This is also true, and an example is given there.
Hence both statements are correct, but mean something different.