Java is not preinstalled but you can install it yourself, e.g. via Chocolatey.
In any case, I’ve checked that the CosmosDB emulator Docker image has a different kernel than a Windows worker and Hyper-V is still not available.
So I can only refer you to a feature request,