It is theoretically possible, but usually games like that are written in C++. You would need to use some sort of 3D library to make games like that with Java.
JavaFX can do some (limited) 3D stuff, but isn't yet anywhere near the level where you would sensibly create a full 3D game with it - pretty much the only sensible option (at the scenegraph API level anyway) is JMonkey.
Though as Davin said, comparatively few games of this type are created in Java - native languages such as C++ / C# are the usual choices (and indeed pretty much every Java 3D library delegates to native code at some point, otherwise it couldn't take advantage of any hardware acceleration.)