Junctional diversity occurs during the somatic recombination process of B and T lymphocytes. When V (variable), D (diversity), and J (joining) gene segments are recombined, additional diversity is introduced at the junctions where these segments join. This can involve the addition or deletion of nucleotides, leading to unique amino acid sequences in the antigen-binding regions of antibodies and T-cell receptors.