Depending on what you want to create, you can develop games with pretty much all programming languages, albeit to different degrees. There will be those who insist you learn C++, especially if you want to code games for consoles like the PlayStation 5 or Xbox. This, however, is absolutely not true. You can make great games with JavaScript, C, Python (thanks to modules like PyGame) or even C. A choice-based adventure game that only works on the console screen can be great fun. However, if you want to program games beyond that and that are capable of being more professional and reaching a larger audience, continue reading. Even back in 2002, Jacob Marner found in his report "Evaluating Java for Game Development" that Java was quite usable for games, except for the most performance dependent parts, and due to the robustness of the language and the underlying JVM that it was cheaper to do it this way.