Midshipman has 2 different meanings across 1 category:
Noun
a temporary rank held by young naval officers in training
An officer of the lowest rank in several navies; especially, a trainee officer.