Question: can bedrock play with java?
Answer: No, cross-play between Java and Bedrock Edition is not possible. I would recommend either buying Java Edition or Bedrock Edition and then playing together. Bedrock is better for this, as you can connect for free via Xbox Live, and Java only supports LAN play.