Which specifications do you mean?
Both aircraft are quite different, even if they have many things in common. Engines (as already mentioned), Langing-Gear, Fuel-Tanks, just to mention a few. And even the A340 comes in 4 different versions (-200, -300. -500, -600).