Italy, Slovenia and Germany took three of the last four available spots in the men's Olympic basketball tournament at the July 23-August 8 games in Tokyo after winning their respective qualifying events on Sunday.

The Italians stunned 2016 silver medallists Serbia 102-95, European champions Slovenia beat Lithuania 96-85, and Germany overpowered Brazil 75-64. Greece and the Czech Republic clash later on Sunday to decide the last available berth.

Serbia was without the NBA regular season's most valuable player Nikola Jokic, who pulled out of the six-team qualifying tournament due to fatigue - and the home side sorely missed the Denver Nuggets centre.

READ: Tokyo Olympics: IOC allows alternate players as part of team squads

The Italians carved out a 25-point lead midway through the third quarter after nailing nine three-pointers in the first half and then held off a late Serbia rally to reach its first Olympics since Athens 2004, when it won the silver medal.

Guard Nicolo Mannion led the Italians with 24 points, Achille Polonara added 22, and Simone Fontecchio chipped in with 21 as Serbia's porous defence failed to deal with its rivals' long-range shooting and offensive rebounds.

Having won the European title in 2017, Slovenia advanced to the Olympics for the first time as an independent nation on the back of an effervescent performance from Dallas Mavericks guard Luka Doncic, who racked up 31 points, 13 assists and 11 rebounds.

After a balanced first half, Slovenia pulled away in the second and silenced the home Lithuanian fans in Kaunas as 22-year old Doncic pulled all the strings to win the tournament's most valuable player award.

"I don't care about the MVP award because what matters is that we won the tournament and reached the Olympics for the first time," a delighted Doncic said in a courtside interview.

READ: Serbia team member tests positive for coronavirus on arrival in Japan - report

"Like every child in Slovenia, I too dreamed all my life of being in the Olympic games. We are a small nation but we have a lot of potential and we've made history here."

Germany knocked out host Croatia in Split on Saturday and followed up with a superb defensive performance against Brazil as they led throughout the low-scoring contest.

Moritz Wagner stood out with a game-high 28 points for the Germans, while Brazil guard Vitor Benite scored only nine at the other end after he was confined to making a mere three of 18 shots from the field.

The Czechs, who edged hosts Canada 103-101 in Saturday's thrilling semi-final, take on Greece in Victoria at 2305 GMT for the last available berth.

Holders United States, France, Iran, Australia, Nigeria, Argentina and Spain all qualified earlier along with host Japan, which was given an automatic berth.