Black body radiation is analyzed by radiation of a cavity with a small hole. In a cavity, waves with discrete frequencies are radiated. The emerged radiation from the hole is supposed to have the same spectrum of the cavity, which is discrete. But, the spectrum of the black body radiation is continues. How can this be explained and justified?