India, Dec. 1 -- Tesla and SpaceX chief Elon Musk has said that working may become optional in the future, citing artificial intelligence (AI) and robotics as reasons.

"My prediction is that in less than 20 years, working will be optional, like a hobby, pretty much," Elon Musk said during a podcast with Indian entrepreneur Nikhil Kamath posted on Sunday.

He said that this change would be brought about by advancements in the field of AI and robotics.

"I think it will turn out to be true that in less than 20 years, maybe. Even as little as... 10 or 15 years. The advancements in AI and robotics will bring us to the point where working is optional in the same way that you can grow your own vegetables in your garden, or you could go to the ...