What programming language should i use to make a game?

I'm trying to make a game sort of like minecraft or terraria. Or even a basic super mario bros game. But basically, i need a programming language that is supportive of 2d and 3d development. I'm willing to learn anything, just give me an idea of what language to do?

Java

Well, you can either create everything on your own or by using a couple of middlewares in C++ or you can try to prototype your game in a game engine that supports 2D and 3D such as Unity3D (C# or Javascript)

Well Minecraft is made in java. So id say learn java that way it works on all pc's and macs with java installed also you can make a andriod app. But C++ is used for most pc games.