Exons are the coding segments of a gene that are retained in the final messenger RNA (mRNA) after the process of RNA splicing. These segments contain the actual genetic information needed for synthesizing proteins, distinguishing them from introns, which are non-coding regions removed during RNA processing. The proper arrangement and inclusion of exons are crucial for the correct translation of proteins in cells.