Why does glass break when you transfer hot glass to cold water?

please do answer.. 😀 thanks 😀