Hello! I am looking into game development, and recently discovered that most cube based games (with procedural generation) are coded in java, and i was wondering why that is!

The term you are looking for is Voxel.

And they are usually made in Java because of the easy to code mechanics, free libraries and allows for launchers etc with updates.

Yeah, I just put Cube Based because there are some voxel based games that are not generated with cubes, for example the Voxel Farm Engine. Thank you!