The banks may have been one of the main culprits of the Great Recession, but they are in far better shape and much better capitalized during the coronavirus pandemic.

That was Warren Buffett's main takeaway on the banking sector at Berkshire Hathaway's (NYSE:BRK.A) (NYSE:BRK.B) annual shareholders meeting on May 2.

"They had done some things they shouldn't have done [in 2008], some of them, and they were certainly in far different financial condition than now. So the banking system is not the problem in this particular [situation]," Buffett said.

The 89-year-old added, "I think the banks have behaved very well and are in very good shape. ... They've built up great reserves there and built own balance sheets."

Warren Buffett

Image source: Getty Images

Following the Great Recession, lawmakers passed the Dodd-Frank Act, which required banks to hold much more capital so they could more easily stomach loan losses during an economic downturn.

For instance, all banks in the U.S. had a tier 1 capital ratio -- a measure of a bank's core capital to its total risk-weighted assets -- of about 10.7% in the third quarter of 2006, right before the Great Recession began. At the end of 2019, this number had grown to 13.29%.

Still, Buffett acknowledged that the banks could experience difficulty if economic conditions continue to deteriorate.

"You can dream of scenarios that put a lot of strain on banks, and they're not totally impossible," he said.

Several banks in Berkshire Hathaway's investment portfolio, including JPMorgan Chase (NYSE:JPM), Bank of America (NYSE:BAC), and Wells Fargo (NYSE:WFC), set aside billions of dollars in the first quarter to deal with loan losses that may begin to materialize more significantly in the coming months.

"They're going to have problems with energy loans, they're going to have extra problems with consumer credit, but they know it and they are well capitalized for it," said Buffett.

He added, "They are not a primary worry of mine at all."

This article represents the opinion of the writer, who may disagree with the “official” recommendation position of a Motley Fool premium advisory service. We’re motley! Questioning an investing thesis -- even one of our own -- helps us all think critically about investing and make decisions that help us become smarter, happier, and richer.