Both versions you have are simply the Bedrock Edition of Minecraft. The "Starter pack" that is mentioned on one of the boxes is a voucher for digital currency in the Minecraft Marketplace, an online store to buy skins, pre-made worlds and mods (for Bedrock Edition only).
The reason one box doesn't mention Bedrock Edition is because it's newer. Since the Better Together Update, the Bedrock Edition moniker has been dropped. While Minecraft: Java Edition retained its suffix, any version that's just called Minecraft, or platform-specific versions like Mincraft: Windows 10 Edition, are really versions of Bedrock Edition.
While it's easy to speculate on why this decision was made, that's a story for a different question. What you need to know about this change is that your (or your sons) Minecraft worlds can be played and enjoyed with friends with versions of Minecraft on all platforms (Switch, Xbox, PlayStation, PC, smartphones). So if your son still enjoys Minecraft in a few years and finally saved enough money to buy a PlayStation 6, he will still be able to continue playing the same world he started on his PlayStation 4, and of course his Xbox friends will always be able to join him.
Another way you could know either versions are not Java Edition is that Java Edition has never been released for any platforms besides the PC. So if you every want to know which version of Minecraft you're playing, just ask these questions:
Is it a version for Minecraft to play on a PC (Windows, Mac or Linux)?
No. You're playing Bedrock Edition.
Yes. Does it say Java Edition on the cover or in the title?
No. You're playing Bedrock Edition.
Yes. You're playing Java Edition.
Note that the box being different doesn't make a difference for what you're getting. Updates to Minecraft have always been free, so either version of the game will give you the latest version of Minecraft, although you might need to run an update before being able to play it.