Java Minecraft (the old version, moddable, self-hostable) and Bedrock Minecraft (windows/console only, no self-hosted servers) are quite different.
The sad thing is that Bedrock is super simple. You can get it on any tablet, pay like 5-6€ a month to Microsoft for a "realm" and you can play with 3-4 friends online. They can join even if they don't pay, any mobile device, console or windows PC will work.
With Java you need someone to host the server or pay for hosting, then you need to give the address to your friends and have them connect. Then you need to worry about whitelists, because there are multiple services scanning for open Minecraft servers and people WILL come in and fuck your world up (happened to me).
The sad thing is that Bedrock is super simple. You can get it on any tablet, pay like 5-6€ a month to Microsoft for a "realm" and you can play with 3-4 friends online. They can join even if they don't pay, any mobile device, console or windows PC will work.
With Java you need someone to host the server or pay for hosting, then you need to give the address to your friends and have them connect. Then you need to worry about whitelists, because there are multiple services scanning for open Minecraft servers and people WILL come in and fuck your world up (happened to me).