SYDNEY, Feb 25 (Reuters) - The Australian Parliament on Thursday passed the news media and digital platforms mandatory bargaining code that would make it compulsory for Alphabet Inc's Google and Facebook Inc to pay media companies for content.

The code will be reviewed within one year of its commencement, Treasurer Josh Frydenberg and Communications Minister Paul Fletcher said in a joint statement.

"The Code will ensure that news media businesses are fairly remunerated for the content they generate, helping to sustain public-interest journalism in Australia," they said. (Reporting by Swati Pandey; Editing by Leslie Adler)