Yes it is a bug. The hotwords are interpreted indenpendantly where they are.
There shouldn't be in a link
I will give you the worst trick before the big fix
Use the description "The Differences between C++ and Java". Java will not be recognized as a hotword as it is not between spaces, punctuation ...