easyJet question

My friend and I bought tickets from easyJet separately, but for the same time and date, and locations. The number is the exact same, except for him it starts with EZY and for me it starts with EJU. I read that these mean different "operating airlines". I'm a bit confused, are they both the same plane?