Optics is the branch of physics and engineering that investigates the behavior, properties, and interactions of electromagnetic radiation across the ultraviolet, visible, and infrared spectral regimes, as well as the design of systems for guiding, shaping, and detecting light (such as lenses, mirrors, interferometers, and imaging instruments). Within classical frameworks, phenomena including reflection, refraction, diffraction, and polarization are described via ray or electromagnetic wave formalisms, whereas advanced subfields—such as quantum optics and nonlinear optics—extend this description to light–matter interactions and the quantum-mechanical properties of quantized electromagnetic fields. Photonics is the science and technology concerned with the generation, manipulation, guidance, modulation, and detection of photons (the quanta of the electromagnetic field, primarily in the visible and near-infrared regimes) to perform practical functions such as information transmission, signal processing, sensing, and energy conversion. Whereas classical optics emphasizes the foundational physical behavior of light waves and rays, photonics adopts a system-oriented engineering perspective that integrates optics, electronics, materials science, and quantum mechanics into devices including lasers, optical fibers, integrated waveguides, single-photon detectors, and photonic integrated circuits.