China has put into service its new generation J-20 stealth fighter, a warplane it hopes will narrow the military gap with the United States, as senior naval officers said the country is building a "first-class" navy and developing a marine corps.

Chinese President Xi Jinping is overseeing a sweeping modernization of the country's armed forces, the largest in the world, including anti-satellite missiles and advanced submarines, seeking to project power far from its shores.

In a report late on Thursday, state television's military channel confirmed that the J-20 had now entered service, though it gave no other details.