Well a go binary only runs on the platform it was compiled for. A jar file runs on any platform that has a working JVM. I.e. most commonly used operating systems and CPU architectures you can name.
Of course whether that matters to you is another thing. Most people package either of those up using docker and run them on generic linux hosts.
Of course whether that matters to you is another thing. Most people package either of those up using docker and run them on generic linux hosts.