As a child, Archduke Charles was reared a devout Roman Catholic. He spent his early years wherever his father's regiment happened to be stationed; later on he lived in Vienna and Reichenau an der Rax. He was privately educated, but, contrary to the custom ruling in the imperial family, he attended a public gymnasium for the sake of demonstrations in scientific subjects. On the conclusion of his studies at the gymnasium, he entered the army, spending the years from 1906 to 1908 as an officer chiefly in Prague, where he studied law and political science concurrently with his military duties.