The United Kingdom will leave the European Union on Oct. 31, hopefully with a deal, finance minister Sajid Javid said on Monday.