Generally, We assume spring is massless.
And Force at every point in a massless spring remains the same.
If the mass of the spring is also given then Force at every point in spring will not be same.
Study 40% syllabus and score up to 100% marks in JEE