THE world will end when the sun ceases to burn! That will occur in the year 1000002006 or around that time anyway... By then we will have developed sufficiently technologically, that we will be able to just teleport ourselves to another galaxy.
Unless we start becoming really lazy and do nothing... We will come up with awesome technology! Also... there is a difference between the end of human existence and the end of the world.