Therefore, a 28-year-old college degree actually studies Java. If you don't particularly like this technology, it is still not recommended. It will be difficult to learn. If you get married and have a family and children, it is difficult to settle down and learn a new technology.
If these conditions are met, you can also switch to learning Java. As long as you have enough confidence and preparation and can go all out, there is no problem.
About what Java learns and then looks for a job, you can learn from this article I published on the platform:
Can Java go out to find a job after learning those contents?
I hope this will help you a little.