Most physics students learn Hamiltonian mechanics in their sophomore year right after learning Lagrangian mechanics. The Hamiltonian formulation of classical mechanics and the Poisson bracket are 19th century inventions, but they play an important role in “deriving” quantum mechanics from classical mechanics as you will see in the section “Transition from Classical Mechanics to Quantum Mechanics.”