Can Java and bedrock play together?
Cross-play between Java and Bedrock Edition is not possible. If you want to play together, you should either buy Java Edition or Bedrock Edition. For this, Bedrock is better as you can connect for free via Xbox Live.