Abstract: A method and apparatus are disclosed for detection of surface defects and internal defect information of a sample, such as a semiconductor device, using the photoacoustic effect. Operationally, an intensity-modulated laser beam is provided having a predetermined desired frequency. The intensity-modulated laser beam is focused on the sample thereby inducing said photoacoustic effect inside the sample which is detected in two-dimensional directions of the sample so as to compose a two-dimensional photoacoustic image of the excited sample. Surface and internal information of the sample is then extracted from the two-dimensional photoacoustic image and an inverse filtering factor is in turn computed on the basis of a thermal impulse response of the particular sample for compensating degradation of the resolution of the actual photoacoustic image obtained. Lastly, the computed inverse filtering factor is then applied to the detected photoacoustic image to arrive at an image having greatly improved resolution.