The F-22 and F-35 are both fifth-generation fighter jets, but they have different roles and capabilities. The F-22 is primarily an air superiority fighter, excelling in air-to-air combat with superior maneuverability and speed. The F-35 is a multirole fighter, designed for a wider range of missions including air-to-ground strikes and intelligence gathering, with advanced sensors and avionics.