Exons are segments of DNA or RNA that contain coding information for proteins, playing a vital role in gene expression. They are the portions of a gene that remain after the removal of non-coding sequences called introns during RNA processing. This processed messenger RNA (mRNA), containing only exons, is then translated into proteins, making exons essential for proper cellular function and regulation.