I am preparing for an exam which requires me to solve problems in electrodynamics and electrostatics problems along with classical mechanics and geometrical optics problems. The concern is that I do not have electrodynamics in my course in school so I have to study it completely on my own. I bought 'Introduction to Electrodynamics' by D.J. Griffiths but before I begin studying sincerely for the exam, I want to ask if it is possible to simultaneously study electrodynamics with classical mechanics. Thank you.