A line is a just a normal straight line but having no ending and and starting point in it .[br]A line is endless .[br]Eg- sky[br][br]
A ray is just a normal straight line but having only starting point not ending .[br]A ray is Endless from only one direction .[br]Eg- Sun rays
A line segment is just a normal straight line but having starting and ending point both .[br]A line segment in limited .[br]Eg- desk , black board , book , e.t.c