Why when a glass jar put in the sun rays ,after some time it breaks up into pieces??

the same answer explains also the breaking of a glass cup when something very hot put in it