Windows uses which ever is mentioned first in the path variable of environment variables window. So your using java 11 by default. you can cross verify by typing below command
java -version