What is the meaning of Midshipman?

An officer of the lowest rank in several navies; especially, a trainee officer.

A midshipman fish.

midshipman

Source: wiktionary.org