 His father, Patrick Knight O'Hara, a primary school teacher in the education department, Victoria, also published two volumes of verse.O'Hara was educated at Carlton College and Ormond College, University of Melbourne, where he had a distinguished career.After winning various exhibitions he graduated with first-class honours in mathematics and physics in 1885.