Answer:
Difference- In a ray, it goes on forever from one side but unlike a line the other side has an endpoint. However, a segment on the other hand has an endpoint on both sides.
Similarity- They both have at least one endpoint.
Step-by-step explanation:
Hope this helps :D