Origin

Early 20th century (in sense 2): from the given name John, used from late Middle English as a form of address to a man, or to denote various occupations, including that of priest (late Middle English) and policeman (mid 17th century).