I'm currently going to school for game programming and so far I've been taught a little C++ and Java. Are these languages better suited to certain applications because of their capabilities or is it just a matter of preference? An example would be using Java for a web application as opposed to C++ OR C++ for a game engine instead of Java.