Hey there,
Nationalism can serve as a unifying force within a country. Imperialism in their sense of rivalry and mistrust of one another deepened. Militarism is having military power and keeping an army prepared for war.
I hope I was the best of help :)
~ Let me know if you need anything ~
Latis1218