So I got to know that javac compiler is written in Java. And JVM converts the bytecode (compiled Java code) to machine code for execution.
Two questions:
- If javac is written in Java, does compiling Java source code require the JVM to start?
- If javac is written in Java, what compiler compiled javac?
I'm assuming the initial javac was written in C and the modern Java compilers are compiled using the primordial javac (written in c).