What are the advantages and disadvantages of developing games with Java (e.g. Minecraft)?

Re
2

Minecraft is known for being programmed in Java. And I wonder why this was implemented in Java? Why wasn't it implemented in C ++, for example? The only advantage I can think of would be that Java is platform-independent, which means that the game doesn't have to be ported in X-different, I think.

Sn

Notch used Java because he likes and knows about Java. That's the whole story of why Minecraft was written in Java. Not because of any advantages or disadvantages.

He couldn't count on success. He started Minecraft just for fun.

Bu

(…) And I wonder why this was implemented in Java?

The answer from Markus Persson:

(…) I'm using mostly Java, because I felt most productive in that. (…)

https://www.gdcvault.com/play/1015646/Back-to-the-Garage-The

In addition, it should be taken into account that not every cornerstone of the game was started entirely by Scratch, but was used as a basis for LWJGL. In other words, a certain resource planning did take place. It was based on an existing library. The decision to use Java could be criticized more strongly if the technology had been completely unsuitable for this project.

Why wasn't it implemented in C ++, for example?

Later, Microsoft implemented an implementation in C ++ (Bedrock Edition) in order to be able to port the game to mobile devices. These target systems were not included in the original concept.

To rewrite the Java-based game in C ++ (that's only attached) would not make sense, by the way. This project has grown too much for that. The modding community would probably be hit very against the head in this way.

The only advantage I can think of would be that Java is platform independent, (…)

This does not apply to all platforms. Java apps, for example, have not been supported on iOS for several years. But still, yes, the broadest platform independence is an advantage. If there are updates for Minecraft, the effort (development, testing) to bring them out for different systems is less.

Another advantage that speaks for Java is that the language is simpler than C ++. Especially since C ++ is not absolutely necessary for this application complexity. In addition, since that is appropriate, I can link my answer to this question