For every program/utility on Unix, I would type the name of the program followed by --version to check its version, like so
program --version
If I understand correctly, the double dash -- is used to specify a single option named version instead of -version, which would mean 7 options v,e,r,s,i,o,n. Why is it then that for java and javac I have to use -version with a single dash. Java --version does not even work. Can someone please explain this to me? Thank you in advance.