Line
Line has no end point. It can be extended infinitely from both sides.
![]()
Line segment
Line segment has two end points.

In the given diagram, Line segment AB has two end points A and B.
Ray
Ray has only one end point.

In the given diagram, A is the only end point. The Ray extends in the other direction till infinity.