The field lines remain continuous, emerging from
one face of the solenoid and entering into the other face One can test this
analogy by moving a small compass needle in the neighbourhood of a
bar magnet and a current-carrying finite solenoid and noting that the
deflections of the needle are similar in both cases To make this analogy more firm we calculate the axial field of a finite
solenoid depicted in Fig 5