Dental x-rays may be necessary for detecting cavities and other dental problems that may not be visible during a visual exam. Your dentist can discuss the benefits and risks of x-rays with you.