President Barack Obama has said that the ascension of Donald Trump to become the presumptive Republican presidential nominee is "not actually good for the country" and "not something Democrats should wish for."

Obama made the remarks in a pre-recorded interview on NBC's "The Tonight Show Starring Jimmy Fallon" that aired Thursday evening. 

When Fallon asked Obama whether he thought Republicans were happy with primary voters' choice of Trump, Obama jokingly responded, "We [Democrats] are" before adding,"the truth is I am actually worried about the Republican Party."

"You want the Republican nominee to be somebody who could do the job if they win," Obama said. "So I am actually not enjoying, and I haven't been enjoying over the last seven years, watching some of the things that have happened in the Republican Party, because there's some good people in the Republican Party."

The interview, which was recorded Wednesday, aired hours after Obama endorsed his former rival and secretary of state Hillary Clinton, who fought off a surprisingly robust challenge from Vermont Sen. Bernie Sanders to clinch the Democratic nomination this week. Obama told Fallon that he thought Sanders "made Hillary a better candidate."

"It was a healthy thing for the Democratic Party to have, a contested primary," he said. "I thought that Bernie Sanders brought enormous energy and new ideas. And he pushed the party and challenged them."

Obama, who became the first sitting president to appear on the long-running late-night program, opened the show by joining Fallon to "slow jam" the news. The segment reprised an appearance by Obama on the Fallon-hosted "Late Night" in 2012.