"This is my eighth and final appearance and I am excited. If this material works well, I'm going to use it at Goldman Sachs next year [and] earn me some serious Tubmans."
He added, "Next year someone else will be standing in this spot. And its anyone's guess who she will be."
He noted that on his recent trip to Great Britain, he had lunch with the queen, saw a Shakespeare performance and played golf with Prime Minister David Cameron. "Just in case anyone was wondering if I'm black enough, I think that settles the debate."
Commenting on his family's desire to finally leave the White House after two terms, Obama quipped: "Someone jumped the White House fence last week. But I have to give the Secret Service credit. They found Michelle and brought her back.
"And yet," he added, "somehow despite all the churn, my approval ratings keep going up. The last time I was this high I was trying to decide on my major."
Turning to the contest among those vying to replace him, the president introduced Bernie Sanders.
"Bernie, you look like a million bucks! Or to put it in terms you'll understand: 37,000 donations of $27 each."
He cracked that Sanders's campaign slogan - "Feel the Bern" - was superior to Hillary Clinton's: "Trudge up the Hill."
As for Trump's Republican challengers, Obama noted: "Ted [Cruz] had a tough week. He went to Indiana . . . and called a basketball hoop a basketball ring. What else is in his lexicon? 'Baseball sticks? Football hats? But sure, I'm the foreign one."
During his two terms in office, Obama has been among the more adept at delivering his comedy monologue, an annual ritual since John F. Kennedy began the tradition at the dinner in 1962.
The event once again was a mashup of Hollywood's beautiful people, famous-for-Washington types, business executives, sports stars, military representatives and many well-connected nobodies. There were even a few actual White House correspondents.
The unusual diversity of the crowd led to some one-of-a-kind encounters. Secretary of State John F. Kerry, Michelle Dockery of "Downton Abbey," "Spotlight" actress Rachel McAdams and MSNBC's Lawrence O'Donnell all gathered at one pre-dinner reception. Vice President Biden sat during the dinner with Kerry and actress Helen Mirren (the vice president typically doesn't attend the dinner; it was Biden's first). At one point Biden greeted singer Gladys Knight by saying, "I am the Pip!"
During a pre-party hosted by ABC and Yahoo, former secretary of state Madeleine Albright was mobbed by fans seeking photos while actress Anna Kendrick ("Pitch Perfect") was unnoticed off to the side.
Sanders eschewed the standard tuxedo in favor of a suit and tie. He and his wife, Jane, were guests of CBS.
Actress Carrie Fisher brought her own guest, her French bulldog Gary, who was clad in a studded collar.
Trump declined to attend this year's event, despite numerous invitations from media organizations. His eldest sons, Eric and Donald Jr., attended in his place.
The night's Hollywood contingent included Will Smith, Bryan Cranston, Morgan Freeman, "Harry Potter" star Emma Watson, "Homeland" and "Billions" star Damian Lewis, "Scandal" star Kerry Washington and reality TV personality Kendall Jenner. Dallas Cowboys quarterback Tony Romo was among the professional athletes in attendance.
The sponsoring White House Correspondents' Association saluted Washington Post reporter Jason Rezaian, who was jailed by Iranian authorities for 18 months until his release in January. Rezaian, who attended the dinner with his wife, Yeganeh Salehi, and brother Ali, received a standing ovation when he presented a series of journalism awards. "This is a big and intimidating room," he told the crowd, "but it beats solitary confinement."
The event was carried live by C-SPAN, CNN, MSNBC and Fox News.
The first dinner was held in 1921, when a group of reporters who had covered Warren G. Harding's presidential campaign got together to fete the newly elected president.
He didn't show up.