Code Conference

Wal-Mart CEO: Big-box stores will probably change

Wal-Mart CEO: We're not a store-centric company

While the retail giant Wal-Mart is still based around big-box stores, CEO Doug McMillon can foresee a time when they'll no longer be predominant.

"If they [customers] don't want stores we don't have to have stores, having said that I think we will have stores in the future, but it will change," he said.

McMillion's comments came in a conversation with Re/code co-founder Kara Swisher at the tech-centric Code Conference in southern California.

Read MoreGet full coverage of the Code Conference here

Doug McMillon, CEO of Wal-Mart.
Asa Mathat | Code Conference

E-commerce, and the blurring of e-commerce with traditional retailing, will likely lead to smaller stores, with customers increasingly using stores as a pickup location.

As of now, 10% of the company's mobile sales happen in stores, he said.

McMillon also said that the company is "regularly" attacked by cyberhackers, though he declined to offer more details.

"We know how important it is and we are going to stay vigilant and head of it," he said.

He also said the company may eventually have 3D printing capabilities in stores so people can print parts and goods.