Java player here!
Bedrock edition of Minecraft has more players because of different mobile and console users, but Bedrock will not take over Java. I think Mojang will continue making updates for both networks equally in the future like they do now. And there are multiplie reasons why I think that Java version will always be around as long as Minecraft in general is still alive.
First of all, Java version was the original version of Minecraft which is still the most popular version of Minecraft among PC users like my self.
Secondly, most if not all big Minecraft Youtubers are Java players and making only Java content. I actually only know one huge Bedrock Youtuber named Stamplylonghead, and even he stopped making Minecraft videos while back. I'm sure that there are more Bedrock Youtubers who I just don't know, but most of the Minecraft Youtubers make Java content only. If Microsoft decided to stop making updates for Java version, most likely all of these big Youtubers would stop playing and making content. Minecraft needs attention from huge content creators because people will start playing Minecraft when they see their favourite YouTubers playing it.
And the third reason why Java will not die is because Java offers a lot of different mods to play with. A lot of big Youtubers like Forge Labs make modded Minecraft Youtube videos like rlcraft which is famous modpack for Java only.
But if we are talking about Java version and Bedrock version of Cubecraft, then it's safe to say that Bedrock has already taken over the Java version. But even though Java has way less amount of players than Bedrock, Java is still doing just fine right now apparently.
@Hazard said this about Java while back in
this thread "No, Java is not at risk of being shut down. At this time we have no active plans on shutting down our Java network. It was previously mentioned that if Java did not surpass 1,000 players at any given time that we would have no choice but to shut it down, however this has since changed, and we no longer plan to do this. Instead, we will continue to expand and improve our Java network where possible."