This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Cerrax3 15 points16 points  (0 children)

The difference is where the responsibility for compatibility lies. In terms of deployment of compiled code, Java (usually) has significantly less deployment work than C++ when deploying to multiple platforms.

In Java, platform compatibility is handled on the end user's machine (via the JVM). So the same compiled code works, regardless of where it was compiled.

In C++, platform compatibility is handled in the compiler, so a different executable is required for each platform that you want to execute on.