You clearly misunderstood the link you gave about Java support if you think it's relevant to how the kernel is implemented.
The kernel has extensible support for execve-ing files the kernel doesn't directly understand as binaries by forwarding them to another program that behaves as an interpreter, the binfmt-misc machinery. The docs you linked just give an example of configuring that for various types of Java files.