Java Update past 17 - How To?

I looked around other posts and found This One.

Is this the proper way to go about updating java to 21?