A line segment is different from a line in that a segment has TWO END POINTS.
A line segment has two end points while a line has only one end point. Also you can measure the length of a line segment but you can not measure the length of a line, that is because it continues indefinitely.