Experience orbs have a black box around their texture when displayed in game.
The black box disappears when the player picks the experience orb up.
Normal items(when dropped on the ground) and throwable items also have a box around them but it's almost transparent. (→ MC-161318)
Confirmed in 19w38b.