Java architecture

Java source codeName.java
is compiled by the Byte-code compiler to...
Java bytecodeName.class
which is executed in a Java interpreter.
For an Applet, the interpreter lives inside a browser,
and it is first validated by a Byte-code verifier.