Jack (flag)

Royal Netherlands Navy jack on HNLMS Walrus (1985), 2008

A jack is a flag on a short jackstaff at the bow (front) of a ship. The ensign is the flag that is at the stern (back).