The given statement says that all plants get energy from the sun and have roots. This means that all plants have these two characteristics. However, we cannot conclude that everything with roots gets sun. There might be non-plant organisms that have roots (or root-like structures) but do not get energy from the sun.
Hence, the statement is true, but its implication about everything with roots getting sun is false.