Sonic boom is an impulsive noise similar to thunder. It is caused by an object moving faster than sound, about 750 miles per hour at sea level. An aircraft traveling through the atmosphere continuously produces air-pressure waves similar to the water waves caused by a ship's bow. When the aircraft exceeds the speed of sound, these pressure waves combine and form shock waves which travel forward from the generation or "release" point.
As an aircraft flies at supersonic speeds it is continually generating shock waves, dropping sonic boom along its flight path, similar to someone dropping objects from a moving vehicle. From the perspective of the aircraft, the boom appears to be swept backwards as it travels awayfrom the aircraft. If the plane makes a sharp turn or pulls up, the boom will hit the ground in front of the aircraft.
Hope this helps :-)