I want to have a subsection with the following name:
The synchronized
Keyword
i.e., make the word "synchronized" appear in a code-like font. I tried doing this:
\subsection{The \ttfamily{synchronized} keyword}
but it also makes the word "keyword" in the code-like font. How can I only apply the font to one word?