The game will be part of NBA All-Star Weekend in Orlando, Fla.
Lin has become a star over the past two weeks, helping the Knicks to seven consecutive wins. He was inserted into the starting lineup and is now the team's third-leading scorer at 12.7 points per game. He's also averaging a team-best 5.1 assists a game.
O'Neal's team includes: Blake Griffin, Los Angeles Clippers; Lin; Minnesota's Ricky Rubio; Detroit's Greg Monroe; Phoenix's Markieff Morris; Charlotte's Kemba Walker; New York's Landry Fields; Miami's Norris Cole; Detroit's Brandon Knight; and Cleveland's Tristan Thompson.
Barkley's team is made up of: Cleveland's Kyrie Irving; Sacramento's DeMarcus Cousins; Indiana's Paul George; Minnesota's Derrick Williams; New Jersey's MarShon Brooks; Washington's John Wall; Utah's Gordon Hayward; San Antonio teammates Tiago Splitter and Kawhi Leonard; and Philadelphia's Evan Turner.
The Rising Stars game is Feb. 24 and the All-Star Game is Feb. 25. All NBA All-Star Weekend festivities take place in Orlando.
Pistorius testifies he didn't consciously pull trigger when he shot girlfriend
Biologists detail four new deep-sea 'killer sponges'