Which of the following is an example of militarism?

A. A country decreases the size of its navy because it has not been attacked at sea.
B. A country builds up its armed forces to enforce control over colonized territories.
C. A country focuses on technological research so it can make life easier for its citizens.
D. A country increases spending on economic growth so it can pay its debts.