Nucleic acids, DNA and RNA, are studied using nucleic acid stains and molecular techniques. Techniques such as Fluorescence In Situ Hybridization (FISH) allow for the visualization of specific DNA or RNA sequences within tissue sections. This is crucial for understanding gene expression patterns and detecting genetic abnormalities in diseases.