Yeah they’d probably be using some build system or framework or script and still wouldn’t need to know the invocation for javac.
The situation in which you run javac or edit in vim in production is absurdly rare.
In real world, you always use tools and in real java world there is always ide or application server or something.
The problem is the IDE makes it so easy to never have to look under the hood, to the point when people take a peek the get overwhelmed and quickly return to the comfort of the IDE.
However, in real world of production environments there will be no IDE holding your hand and as such you can't get away without a good understanding of the engine under the hood.