Johann Hamza was born in Teltsch (Telc) in what was part of the Austria-Hungarian Europe and is now the Czech Republic. He settled in Vienna, the capital of the Empire studying at the Academy under the Professor Eduard von Engerth (1818-1897). Engerth was a well-travelled artist of historical and architectural subjects and portraits. He had himself studied at the Vienna Academy and before being appointed Professor had held the same position in Prague.
Hamza following his studies in Vienna established himself as a painter of figurative genre, narrative works depicting the social life of the wealthy bourgeoisie of Vienna. Many of his works portray weddings and baptisms set in the richly decorated Rococo interiors of churches in Vienna, or social gatherings in the grand Viennese town houses. Such works were popular throughout the Empire, Germany and the United States with collectors from Munich to Hamburg and New York. Hamza exhibited in Vienne, Dresden and Munich from 1879-1890 and achieved great success and renown.
Hamza died in Vienna in 1927.