Answer
A line extends infinitely in two directions and is represented by $\overleftrightarrow{AB}$. A ray extends infinitely in one direction and is represented by $\overrightarrow{AB}$.
Work Step by Step
The fact that a line goes infinitely in two directions while a ray goes infinitely in one direction is what differentiates a line and a ray.