Plasmids are extrachromosomal DNA molecules that can carry a variety of non-essential but advantageous genes, including those for antibiotic resistance, heavy metal resistance, and the F-factor for conjugation.