Hello!
I do believe you meant to say:
"What is the difference between a ray and a line segment?"
The difference between a ray and a line segment is:
A ray has one endpoint and continues in one direction. a ray is infinite
A line segment has two endpoints. a line segment is finite
I hope this helps, and have a nice day!