Minecraft Java Edition is the original version of Minecraft, released in 2011, and is available for computers only.
Minecraft Bedrock Edition (also called 'Pocket Edition') is the cross-platform version of Minecraft, available for computers, smartphones and game consoles.
If you are interested in community-made mods/modpacks or want to play on the largest online Minecraft servers available, Minecraft Java Edition is what you are looking for. If you want to play with friends on other systems, play on multiple devices or like to play with a controller, Minecraft Bedrock Edition is the way to go.
(source)